getEnableERC1271PoliciesAction
Get the action to enable ERC1271 policies for a specific session in the smart sessions validator.
Usage
const action = await getEnableERC1271PoliciesAction({
permissionId: '0x1234...',
erc1271Policies: {
allowedERC7739Content: ['content'],
erc1271Policies: [
{
policy: '0xabcd...',
initData: '0x',
},
],
},
})
Parameters
permissionId
- Type:
Hex
(opens in a new tab)
The permission ID of the session to enable ERC1271 policies for.
erc1271Policies
- Type:
ERC7739Data
A list of ERC1271 policies.
Returns
action
- Type:
Promise<Action>
The action to enable ERC1271 policies for a specific session in the smart sessions validator.