setCreationBlock method

TestScilla setCreationBlock(
  1. String blockNumber
)

Implementation

TestScilla setCreationBlock(String blockNumber) {
  var result = setParamValues([
    {'vname': '_creation_block', 'type': 'BNum'}
  ], [
    {
      'vname': '_creation_block',
      'type': 'BNum',
      'value': BigInt.from(int.parse(blockNumber)).toString()
    }
  ]);
  var block = result[0];
  List newList = List.from(this.init!);
  newList.add(block);
  this.init = List.from(newList);
  return this;
}