Tooling
ModuleKit
Reference
ERC-4337 Data Libs
flatbytes
flatbyteslib
Store

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

Stores the data into storage.

Usage

contract FlatBytesTest {
    using FlatBytesLib for FlatBytesLib.Bytes;
 
    FlatBytesLib.Bytes data;
 
    function storeData() external {
        bytes memory _data = hex"424141414141414141414141414141414141414141414141414141414141414141414143";
 
        data.store(_data);
    }
}

Parameters

self

  • Type: Bytes

The instance of the Bytes data.

data

  • Type: bytes

The data to store.

Returns

None