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 ShouldRevertSnapshot() { await GanacheManager.RevertState(); GanacheManager.LastSnapshot.ShouldBeGreaterThan(0); }