mirror of
https://github.com/getwax/zk-account-abstraction.git
synced 2026-01-08 20:18:05 -05:00
Merge pull request #244 from VGLoic/fix/wrong-nonce-sig
fix: update invalid nonce method signature in test utils
This commit is contained in:
@@ -198,7 +198,7 @@ export async function fillUserOp (op: Partial<UserOperation>, entryPoint?: Entry
|
||||
}
|
||||
if (op1.nonce == null) {
|
||||
if (provider == null) throw new Error('must have entryPoint to autofill nonce')
|
||||
const c = new Contract(op.sender!, ['function nonce() view returns(address)'], provider)
|
||||
const c = new Contract(op.sender!, ['function nonce() view returns(uint256)'], provider)
|
||||
op1.nonce = await c.nonce().catch(rethrow())
|
||||
}
|
||||
if (op1.callGasLimit == null && op.callData != null) {
|
||||
|
||||
Reference in New Issue
Block a user