Skip to main content
Compares two BrandedStorageKey instances for structural equality.

Signature

    Parameters

    • a (BrandedStorageKey) - First storage key
    • b (BrandedStorageKey) - Second storage key

    Returns

    boolean - true if address and slot are equal, false otherwise

    Examples

    Basic Comparison

      Different Addresses

      Round-Trip Equality

      Deduplication

      Storage Validation

      Cache Lookup

      Set Operations

      Testing

      Implementation Details

      Equality checks both:
      1. Address equality (using Address.equals())
      2. Slot equality (direct bigint comparison)
      Both must match for keys to be equal.