Class EntryFunctionBytes

This class exists solely to represent a sequence of fixed bytes as a serialized entry function, because serializing an entry function appends a prefix that's only used for entry function arguments.

NOTE: Attempting to use this class for a serialized script function will result in erroneous and unexpected behavior.

If you wish to convert this class back to a TransactionArgument, you must know the type of the argument beforehand, and use the appropriate class to deserialize the bytes within an instance of this class.

Hierarchy

Implements

Constructors

Properties

value: FixedBytes

Methods

  • The only way to create an instance of this class is to use this static method.

    This function should only be used when deserializing a sequence of EntryFunctionPayload arguments.

    Parameters

    • deserializer: Deserializer

      the deserializer instance with the buffered bytes

    • length: number

      the length of the bytes to deserialize

    Returns EntryFunctionBytes

    an instance of this class, which will now only be usable as an EntryFunctionArgument

Generated using TypeDoc