Skip to content

Commit

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

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

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

0 comments on commit ebe6ffc

Please sign in to comment.