testCall method
Implementation
Future<TestScilla> testCall(gasLimit) async {
try {
RPCMiddleWare res =
await this.messenger!.sendServer(Endpoint.ScillaCall, {
'code': this.code,
'init': json.encode(this.init),
'blockchain': json.encode(this.blockchain),
'gaslimit': gasLimit.toString()
});
print(res.message);
if (res.result.toString() != 'error') {
this.setStatus(ContractStatus.TESTED);
} else {
this.setStatus(ContractStatus.ERROR);
}
return this;
} catch (error) {
rethrow;
}
}