pub struct CallData {
    pub method_name: String,
    pub arguments: Vec<u8>,
}
Expand description

CallData defines the data format that passes to entry point of the contact

The struct contains primitive types which are serialized into the field “argument” in smart_contract::Transaction. Before that, Transaction::argument is appended 4 bytes at the front to indicate the format version

Fields

method_name: String

function name of contract with entrypoint methods. Empty string indicates the contract without entrypoint methods

arguments: Vec<u8>

arguments to function (entrypoint method) In contract with entrypoint methods, the arguments should be deserialized to vector of Vec and then pass as function arguments

Trait Implementations

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.