• Decodes a CBOR-encoded contract address into an CborContractAddress instance. This function can handle both the full format (with subindex) and a simplified format with just the index.

    1. With subindex:
    [uint, uint]
    
    1. Without subindex:
    uint
    

    Throws

    • If the input is not a valid CBOR encoding of an contract address.

    Returns

    The decoded CborContractAddress instance.

    Parameters

    • bytes: Uint8Array

      The CBOR encoded representation of an contract address.

    Returns Type

Generated using TypeDoc