Tooling
ModuleKit
Reference
ERC-4337 Data Libs
flatbytes
flatbyteslib
Clear

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

Clears the data from storage.

Usage

contract FlatBytesTest {
    using FlatBytesLib for FlatBytesLib.Bytes;
 
    FlatBytesLib.Bytes data;
 
    function clearData() external {
        data.clear();
    }
}

Parameters

self

  • Type: Bytes

The instance of the Bytes data.

Returns

None