OpenZeppelin external tests failing with "InvalidArgumentsError: leading zero"
- Dominant language
- C++
- Stars
- 25.7k
- Forks
- 6.2k
- Avg merge
- 2d 19h
- Merged PRs (30d)
- 29
Description
The OpenZeppelin external tests are failing with the error: `InvalidArgumentsError: leading zero` in tests involving ERC-7702.
See: https://app.circleci.com/pipelines/github/argotorg/solidity/41135/workflows/95766470-f2be-41fb-8f24-cb964472f7d0/jobs/1919109
```txt
1) AccountERC7702WithModules: ERC-7702 account with ERC-7579 modules supports
using ERC-7702 signer
entryPoint
should return the canonical entrypoint:
InvalidArgumentsError: leading zero
at EdrProviderWrapper.request (/tmp/ext-test-Zeppelin-u4vgnG/ext/node_modules/hardhat/src/internal/hardhat-network/provider/provider.ts:462:19)
at GasReporterProvider._handleViemOrWaffle (/tmp/ext-test-Zeppelin-u4vgnG/ext/node_modules/hardhat-gas-reporter/src/lib/provider.ts:70:20)
at async Promise.all (index 0)
at HardhatEthersProvider.broadcastTransaction (/tmp/ext-test-Zeppelin-u4vgnG/ext/node_modules/@nomicfoundation/hardhat-ethers/src/internal/hardhat-ethers-provider.ts:275:33)
at HDNodeWallet.sendTransaction (/tmp/ext-test-Zeppelin-u4vgnG/ext/node_modules/ethers/src.ts/providers/abstract-signer.ts:255:16)
at Proxy.deploy (/tmp/ext-test-Zeppelin-u4vgnG/ext/test/helpers/erc4337.js:175:5)
at Context. (/tmp/ext-test-Zeppelin-u4vgnG/ext/test/account/Account.behavior.js:10:7)
```
Contributor guide
Research direction
Start by reviewing the failing CircleCI job and the ERC-7702 external-test stack trace, especially the deployment call in test/helpers/erc4337.js and the scenario in test/account/Account.behavior.js. Reproduce the failure and trace the source of “InvalidArgumentsError: leading zero”; done means the OpenZeppelin ERC-7702 external tests pass without that error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- solidity
- Domain
- blockchain, compilers, testing
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100