setBlockchain method

TestScilla setBlockchain(
  1. String blockNumber
)

Implementation

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