Skip to main content
Factory function for creating BrandedStorageKey instances from contract address and storage slot.

Signature

Parameters

  • address (AddressType) - 20-byte contract address owning the storage slot
  • slot (bigint) - 256-bit storage slot number within the contract’s storage space

Returns

BrandedStorageKey - Composite key uniquely identifying the storage location

Examples

Basic Usage

    Multiple Slots

    Storage Map Usage

    Computed Mapping Slots