diff --git a/frame/hybrid-vm-port/src/port.rs b/frame/hybrid-vm-port/src/port.rs index 38af186..8d54d3e 100644 --- a/frame/hybrid-vm-port/src/port.rs +++ b/frame/hybrid-vm-port/src/port.rs @@ -348,7 +348,7 @@ impl Pallet { }; let info = pallet_contracts::Pallet::::bare_call( - origin, + origin.clone(), t.into(), balance, weight_limit, @@ -362,8 +362,7 @@ impl Pallet { match info.result { Ok(return_value) => { if !return_value.did_revert() { - // because return_value.data = MessageResult, so, the - // first byte is zhe Ok() Code, be removed + frame_system::Pallet::::inc_account_nonce(&origin); let err_data = DispatchErrorWithPostInfo { post_info: PostDispatchInfo { actual_weight: Some(info.gas_consumed),