storeStateInit function

void Function(Builder builder) storeStateInit(
  1. StateInit src
)

Implementation

void Function(Builder builder) storeStateInit(StateInit src) {
  return (Builder builder) {
    if (src.splitDepth != null) {
      builder.storeBit(1);
      builder.storeUint(BigInt.from(src.splitDepth!), 5);
    } else {
      builder.storeBit(0);
    }

    if (src.special != null) {
      builder.storeBit(1);
      builder.store(storeTickTock(src.special!));
    } else {
      builder.storeBit(0);
    }

    builder.storeMaybeRef(src.code);
    builder.storeMaybeRef(src.data);
    builder.storeDictionary(src.libraries);
  };
}