Merge pull request #244 from VGLoic/fix/wrong-nonce-sig

fix: update invalid nonce method signature in test utils
This commit is contained in:
Dror Tirosh
2023-03-26 15:45:18 +03:00
committed by GitHub

View File

@@ -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) {