Skip to content

Commit

Permalink
fix paymaster test
Browse files Browse the repository at this point in the history
  • Loading branch information
eerkaijun authored and norswap committed Apr 4, 2024
1 parent 061a253 commit a9ae7e8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions paymaster/test/tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,17 +44,17 @@ async function main() {
// Construct UserOp
let userOp: PackedUserOperation = {
sender: simpleAccountAddress,
nonce: Number(await paymaster.senderNonce(simpleAccountAddress)),
nonce: 0,
initCode: initCode,
callData: callData,
accountGasLimits: ethers.concat([
ethers.toBeHex(3_000_000), // callGasLimit: hardcode it for now at a high value,
ethers.toBeHex(3_000_000) // verificationGasLimit: hardcode it for now at a high value,
ethers.zeroPadValue(ethers.toBeHex(3_000_000), 16), // callGasLimit: hardcode it for now at a high value,
ethers.zeroPadValue(ethers.toBeHex(3_000_000), 16) // verificationGasLimit: hardcode it for now at a high value,
]),
preVerificationGas: ethers.toBeHex(2_000_000), // hardcode it for now at a high value,
gasFees: ethers.concat([
ethers.toBeHex(2e9), // maxFeePerGas
ethers.toBeHex(1e9) // maxPriorityFeePerGas
ethers.zeroPadValue(ethers.toBeHex(2_000_000_000), 16), // maxFeePerGas
ethers.zeroPadValue(ethers.toBeHex(1_000_000_000), 16) // maxPriorityFeePerGas
]),
paymasterAndData: ethers.concat([
paymasterAddress,
Expand Down

0 comments on commit a9ae7e8

Please sign in to comment.