Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion contracts/test/EVMPrecompileTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,11 @@ describe("EVM Precompile Tester", function () {
expect(delegation).to.not.be.null;
expect(delegation[0][0]).to.equal(10000n);

const undelegate = await staking.undelegate(validatorAddr, delegation[0][0]);
// manually set gas limit to 500_000 because gas estimate for undelegate
// is not reliable (cost varies greatly block by block)
const undelegate = await staking.undelegate(validatorAddr, delegation[0][0],{
gasLimit: 500_000,
});
const undelegateReceipt = await undelegate.wait();
expect(undelegateReceipt.status).to.equal(1);

Expand Down
Loading