Tooling
ModuleKit
Reference
Testing
Smart Sessions
Makemultichainenabledata

⚠️ Deprecation Notice

ModuleKit was developed by Rhinestone and is no longer actively supported. If you're building modules and need assistance, reach out to Rhinestone at gm@rhinestone.dev


title: "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.