Skip to content

Commit

Permalink
Merge branch 'develop' into 'master'
Browse files Browse the repository at this point in the history
Fixed an issue with gas usage deviating in AccountAddressEcho test (due to…

See merge request company-projects/Meadow!46
  • Loading branch information
Xenomega committed Oct 7, 2018
2 parents a794672 + 3354336 commit 0b943de
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Meadow.UnitTestTemplate.ParallelTest/GasUsageTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,9 @@ public async Task FallbackNonpayable()
[TestMethod]
public async Task AccountAddressEcho()
{
var gas = await _basicContract.echoAddress(Accounts[1]).EstimateGas();
// The amount of gas used will deviate depending on leading zeros, so we test without any.
Address address = new Address("0x7777777777777777777777777777777777777777");
var gas = await _basicContract.echoAddress(address).EstimateGas();
Assert.AreEqual(23269, gas);
}

Expand Down

0 comments on commit 0b943de

Please sign in to comment.