Skip to content

Commit

Permalink
added paymasterAndData fix
Browse files Browse the repository at this point in the history
  • Loading branch information
leekt committed May 1, 2024
1 parent 6ccdf7b commit 68e294b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/validator/SessionKeyValidator.sol
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ contract SessionKeyValidator is IKernelValidator {
// to make this fully work with paymaster service, prepack the address of paymaster up front
if (session.paymaster == address(1)) {
// any paymaster
require(userOp.paymasterAndData.length != 0, "SessionKeyValidator: paymaster not set");
require(userOp.paymasterAndData.length != 0 && bytes20(userOp.paymasterAndData[0:20]) != bytes20(0), "SessionKeyValidator: paymaster not set");
} else if (session.paymaster != address(0)) {
// specific paymaster
require(
Expand Down

0 comments on commit 68e294b

Please sign in to comment.