Skip to content

Commit

Permalink
feat: add native token transfer support in session key validator
Browse files Browse the repository at this point in the history
  • Loading branch information
SahilVasava committed May 1, 2024
1 parent e00c66a commit 6ccdf7b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
url = https://github.com/leekt/I4337
[submodule "lib/FreshCryptoLib"]
path = lib/FreshCryptoLib
url = https://github.com/rdubois-crypto/FreshCryptoLib
url = https://github.com/rdubois-crypto/FreshCryptoLib
[submodule "lib/p256-verifier"]
path = lib/p256-verifier
url = https://github.com/daimo-eth/p256-verifier
path = lib/p256-verifier
url = https://github.com/daimo-eth/p256-verifier
[submodule "lib/solady"]
path = lib/solady
url = https://github.com/vectorized/solady
1 change: 1 addition & 0 deletions src/validator/SessionKeyValidator.sol
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,7 @@ contract SessionKeyValidator is IKernelValidator {
}

function verifyPermission(bytes calldata data, Permission calldata permission) internal pure returns (bool) {
if(data.length == 0 && permission.sig == bytes4(0x0)) return true;
if (bytes4(data[0:4]) != permission.sig) return false;
for (uint256 i = 0; i < permission.rules.length; i++) {
ParamRule calldata rule = permission.rules[i];
Expand Down

0 comments on commit 6ccdf7b

Please sign in to comment.