Macro runtime_args

Source
macro_rules! runtime_args {
    () => { ... };
    ( $($key:expr => $value:expr,)+ ) => { ... };
    ( $($key:expr => $value:expr),* ) => { ... };
}
Expand description

Macro that makes it easier to construct named arguments.

NOTE: This macro does not propagate possible errors that could occur while creating a CLValue. For such cases creating RuntimeArgs manually is recommended.

ยงExample usage

use casper_types::runtime_args;
let _named_args = runtime_args! {
  "foo" => 42,
  "bar" => "Hello, world!"
};