Tooling
ModuleKit
Reference
ERC-4337 Data Libs
flatbytes
flatbyteslib
Load

⚠️ 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: "load"

Loads data from storage.

Usage

contract FlatBytesTest {
    using FlatBytesLib for FlatBytesLib.Bytes;
 
    FlatBytesLib.Bytes data;
 
    function loadData() external {
        bytes memory _data = data.load();
    }
}

Parameters

self

  • Type: Bytes

The instance of the Bytes data.

Returns

data

  • Type: bytes

The data stored.