Fix 5.2 audit L-05, N-03, N-04, N-05 and N-06 issues (#5308)

This commit is contained in:
Hadrien Croubois
2024-11-20 09:21:49 +01:00
committed by GitHub
parent ffca412299
commit ccb5f2d8ca
11 changed files with 21 additions and 39 deletions

View File

@ -133,13 +133,6 @@ describe('ERC4337Utils', function () {
});
describe('hash', function () {
it('returns the user operation hash', async function () {
const userOp = new UserOperation({ sender: this.sender, nonce: 1 });
const chainId = await ethers.provider.getNetwork().then(({ chainId }) => chainId);
expect(this.utils.$hash(userOp.packed)).to.eventually.equal(userOp.hash(this.utils.target, chainId));
});
it('returns the operation hash with specified entrypoint and chainId', async function () {
const userOp = new UserOperation({ sender: this.sender, nonce: 1 });
const chainId = 0xdeadbeef;