Skip to content

Commit

Permalink
chore: nurse verification gas limit in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
joepegler committed Aug 12, 2024
1 parent 7b0f899 commit 736e918
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions tests/modules/write.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -479,8 +479,16 @@ describe("Modules:Write", () => {
};

const [partialUserOp1, partialUserOp2] = await Promise.all([
baseAccount.buildUserOp([transaction], withSponsorship),
polygonAccount.buildUserOp([transaction], withSponsorship),
baseAccount.buildUserOp([transaction], {
...withSponsorship, gasOffset: {
verificationGasLimitOffsetPct: 50 // 50% increase
}
}),
polygonAccount.buildUserOp([transaction], {
...withSponsorship, gasOffset: {
verificationGasLimitOffsetPct: 50 // 50% increase
}
}),
]);

expect(partialUserOp1.paymasterAndData).not.toBe("0x");
Expand Down

0 comments on commit 736e918

Please sign in to comment.