ModuleKit
Testing
Smart Sessions
makeMultiChainEnableData

makeMultiChainEnableData

Gets the data required to enable a session.

Usage

EnableSession memory enableData = instance.makeMultiChainEnableData({
  session: session,
  mode: SmartSessionMode.ENABLE,
});

Parameters

instance

The instance of the account used for testing.

session

The session to enable.

mode

  • Type: SmartSessionMode

The mode of enabling the session, either USE, ENABLE or UNSAFE_ENABLE.

Returns

enableData

The data required to enable the session.