[][src]Macro oasis_std::invoke

macro_rules! invoke {
    ($address:expr, $method:expr, $ctx:expr, $( $arg:expr ),* $(,)?) => { ... };
}

Makes a transaction to an address using Oasis RPC semantics.

Usage

invoke!(addr: Address, method: impl AsRef<str>, ctx: &Context, args: ..impl Serialize);

Example

invoke!(
    some_address,
    "method",
    &Context::default(),
    "an arg",
    &["some", "more", "args"],
    42,
)