public async Task ShouldDeployMultiplierContract() { int stateId = await GanacheManager.SaveState(); MultiplyContractService multiplyContractService = await MultiplyContractService.DeployContractAndGetServiceAsync ( GanacheManager.Web3, new MultiplyContractDeployment { FromAddress = EthereumSettings.TestAccountAddress, Multiplier = 7, } ); multiplyContractService.ShouldNotBeNull(); await GanacheManager.RevertState(); }
public async Task ShouldCreateSnapshot() { int snapshotId = await GanacheManager.SaveState(); snapshotId.ShouldBeGreaterThan(0); }