Skip to content

Commit

Permalink
Address PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
forshtat committed Oct 31, 2023
1 parent ad86d8a commit 081ee7a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion contracts/core/EntryPoint.sol
Original file line number Diff line number Diff line change
Expand Up @@ -665,8 +665,9 @@ contract EntryPoint is IEntryPoint, StakeManager, NonceManager, ReentrancyGuard,
try IPaymaster(paymaster).postOp{
gas: mUserOp.verificationGasLimit
}(mode, context, actualGasCost)
// solhint-disable-next-line no-empty-blocks
{} catch (bytes memory reason) {
revert(string(abi.encodePacked("AA96 postOp reverted", reason)));
revert(string(abi.encodePacked("AA96 reverted:", reason)));
}
}
}
Expand Down
4 changes: 3 additions & 1 deletion test/entrypoint.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1107,7 +1107,9 @@ describe('EntryPoint', function () {
callGasLimit: 1e6
}, account3Owner, entryPoint)
const beneficiaryAddress = createAddress()
await entryPoint.handleOps([op], beneficiaryAddress)
const rcpt1 = await entryPoint.handleOps([op], beneficiaryAddress).then(async t => await t.wait())
const logs1 = await entryPoint.queryFilter(entryPoint.filters.UserOperationEvent(), rcpt1.blockHash)
expect(logs1[0].args.success).to.be.false
})

it('paymaster should pay for tx', async function () {
Expand Down

0 comments on commit 081ee7a

Please sign in to comment.