Skip to content

Commit

Permalink
Adds test for gas_limit value in estimateGas (#119)
Browse files Browse the repository at this point in the history
  • Loading branch information
crystalin authored Sep 11, 2020
1 parent daaa3d1 commit cbf5768
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions ts-tests/tests/test-gas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,13 @@ describeWithFrontier("Frontier RPC (Gas)", `simple-specs.json`, (context) => {

expect(await contract.methods.multiply(3).estimateGas()).to.equal(21204);
});

it("eth_estimateGas without gas_limit should pass", async function () {
const contract = new context.web3.eth.Contract([TEST_CONTRACT_ABI], FIRST_CONTRACT_ADDRESS, {
from: GENESIS_ACCOUNT
});

expect(await contract.methods.multiply(3).estimateGas()).to.equal(21204);
});

});

0 comments on commit cbf5768

Please sign in to comment.