Skip to content

File: src/Scale/Address/Address.sol

Address

Kind: library

ABI Surface

Errors

  • error InvalidAddressLength()

Function Surface

  • function encode(address value) internal pure returns (bytes)
    • Encodes an address into SCALE format (20-byte little-endian).
  • function encodedSizeAt(bytes data, uint256 offset) internal pure returns (uint256)
    • Returns the number of bytes that an address would occupy when SCALE-encoded.
  • function decode(bytes data) internal pure returns (address)
    • Decodes SCALE-encoded bytes into an address.
  • function decodeAt(bytes data, uint256 offset) internal pure returns (address)
    • Decodes an address from SCALE format at the specified offset.

Created with solidity-doc-generator