Action policy
The action policy limits the target (either contract or EOA) that the UserOp can interact with.
const createSessionsResponse = await safe7559Account.grantPermission({
sessionRequestedInfo: [
{
sessionPublicKey: sessionOwner.address,
actionPoliciesInfo: [
{
contractAddress: COUNTER_CONTRACT_ADDRESS,
functionSelector: toFunctionSelector(
"function count()"
) as Hex,
},
],
},
],
});
Last updated