Skip to content

Commit

Permalink
set the gas limit
Browse files Browse the repository at this point in the history
  • Loading branch information
sunchengzhu committed Nov 30, 2023
1 parent c2c4b8f commit 7d9e9e6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test/proxy/Clones.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ contract('Clones', function (accounts) {
);
// deploy twice
await expectRevert(
factory.cloneDeterministic(implementation, salt, '0x'),
factory.cloneDeterministic(implementation, salt, '0x', { gas: '30000000' }),
'ERC1167: create2 failed',
);
});
Expand Down
4 changes: 2 additions & 2 deletions test/utils/Address.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ contract('Address', function (accounts) {
}, []);

await expectRevert(
this.mock.functionCall(this.contractRecipient.address, abiEncodedCall),
this.mock.functionCall(this.contractRecipient.address, abiEncodedCall, { gas: '100000' }),
'Address: low-level call failed',
);
});
Expand Down Expand Up @@ -309,7 +309,7 @@ contract('Address', function (accounts) {
}, []);

await expectRevert(
this.mock.functionStaticCall(this.contractRecipient.address, abiEncodedCall),
this.mock.functionStaticCall(this.contractRecipient.address, abiEncodedCall, { gas: '100000' }),
'Address: low-level static call failed',
);
});
Expand Down

0 comments on commit 7d9e9e6

Please sign in to comment.