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.
With subindex:
[uint, uint]
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.
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.
Throws
Returns
The decoded CborContractAddress instance.