⚠️ 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
- Type:
AccountInstance
The instance of the account used for testing.
session
- Type:
Session
The session to enable.
mode
- Type:
SmartSessionMode
The mode of enabling the session, either USE, ENABLE or UNSAFE_ENABLE.
Returns
enableData
- Type:
EnableSession
The data required to enable the session.