This PR introduces the draft testing implementation for the following permissions check during the CoSign process:
contract-call permission:
Extracting the contract call address from the bundler's execution operation and comparing it to the permissions allowed for the address call.
native-token-transfer permission:
Extracted values from the bundler's execution batch are summarized and checked with the allowance.
Currently missing:
Check for the period, start, and expiration,
Tracking the already spent amount.
How Has This Been Tested?
Manual testing only, integration tests will be added before merging.
Description
This PR introduces the draft testing implementation for the following permissions check during the CoSign process:
contract-call
permission: Extracting the contract call address from the bundler's execution operation and comparing it to the permissions allowed for the address call.native-token-transfer
permission: Extracted values from the bundler's execution batch are summarized and checked with the allowance.Currently missing:
How Has This Been Tested?
Due Diligence