ModuleSDK
Modules
getEnableERC1271PoliciesAction

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

The permission ID of the session to enable ERC1271 policies for.

erc1271Policies

A list of ERC1271 policies.

Returns

action

The action to enable ERC1271 policies for a specific session in the smart sessions validator.