Skip to content

Commit

Permalink
fix: [spearbit-46] remove extra argument from _checkCallPermissions()
Browse files Browse the repository at this point in the history
  • Loading branch information
jaypaik committed Jan 8, 2024
1 parent ca45dcf commit 0796b78
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -265,8 +265,8 @@ contract SessionKeyPermissionsPlugin is ISessionKeyPermissionsPlugin, SessionKey
for (uint256 i = 0; i < callsLength;) {
Call memory call = calls[i];
nativeTokenSpend += call.value;
validationSuccess = validationSuccess
&& _checkCallPermissions(accessControlType, keyId, call.target, call.value, call.data);
validationSuccess =
validationSuccess && _checkCallPermissions(accessControlType, keyId, call.target, call.data);

unchecked {
++i;
Expand Down Expand Up @@ -336,7 +336,6 @@ contract SessionKeyPermissionsPlugin is ISessionKeyPermissionsPlugin, SessionKey
ContractAccessControlType accessControlType,
SessionKeyId keyId,
address target,
uint256, /*value*/
bytes memory callData
) internal view returns (bool validationSuccess) {
validationSuccess = true;
Expand Down

0 comments on commit 0796b78

Please sign in to comment.