File tree 1 file changed +4
-5
lines changed
1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -1105,10 +1105,10 @@ contract("Pyth", function () {
1105
1105
2
1106
1106
) ;
1107
1107
1108
- // Strangely this test was failing without the hard coded gas limit.
1109
- // It will failing randomly on a place that it shouldn't without any message due to
1110
- // gas limit if the value is not hard-coded.
1111
- // Gas value 6.7m gas is very high and close to the ganache limit.
1108
+ // This test fails without the hard coded gas limit.
1109
+ // Without gas limit, it fails on a random place (in wormhole sig verification) which
1110
+ // is probably because truffle cannot estimate the gas usage correctly. So the gas is
1111
+ // hard-coded to a high value of 6.7m gas ( close to ganache limit) .
1112
1112
await expectRevertCustomError (
1113
1113
this . pythProxy . executeGovernanceInstruction ( transferBackVaaWrong , {
1114
1114
gas : 6700000 ,
@@ -1388,7 +1388,6 @@ async function expectRevertCustomError(promise, reason) {
1388
1388
expect . fail ( "Expected promise to throw but it didn't" ) ;
1389
1389
} catch ( revert ) {
1390
1390
if ( reason ) {
1391
- // expect(revert.message).to.include(reason);
1392
1391
const reasonId = web3 . utils . keccak256 ( reason + "()" ) . substr ( 0 , 10 ) ;
1393
1392
expect (
1394
1393
JSON . stringify ( revert ) ,
You can’t perform that action at this time.
0 commit comments