public async Task ContractTooLargeException() { try { await OversizedContract.New(RpcClient); } catch (ContractExecutionException ex) { StringAssert.Contains(ex.Message, "exceeds the maximum contract size"); return; } throw new Exception("Should have failed deployment"); }
public async Task ContractSizeCheckDisabled() { OversizedContract contract = null; await DisableContractSizeLimit(async() => { contract = await OversizedContract.New(RpcClient, new TransactionParams { Gas = 8700000 }); }); var(num, tx) = await contract.echoNumber(123).CallAndTransact(); Assert.AreEqual(123, num); }