mirror of
https://github.com/fluencelabs/aquavm
synced 2025-06-12 14:31:20 +00:00
Add support for %init_peer_id% (#24)
This commit is contained in:
@ -146,8 +146,8 @@ pub fn set_variables_call_service(ret_mapping: HashMap<String, String>) -> HostE
|
||||
|
||||
#[macro_export]
|
||||
macro_rules! call_vm {
|
||||
($vm:expr, $init_user_id:expr, $script:expr, $prev_data:expr, $data:expr) => {
|
||||
match $vm.call_with_prev_data($init_user_id, $script, $prev_data, $data) {
|
||||
($vm:expr, $init_peer_id:expr, $script:expr, $prev_data:expr, $data:expr) => {
|
||||
match $vm.call_with_prev_data($init_peer_id, $script, $prev_data, $data) {
|
||||
Ok(v) => v,
|
||||
Err(err) => panic!("VM call failed: {}", err),
|
||||
}
|
||||
|
Reference in New Issue
Block a user