From 1d2e911625b58d4bebc0c97ee02daea10a6ebe21 Mon Sep 17 00:00:00 2001 From: pierre Date: Tue, 7 Mar 2023 17:23:51 +0100 Subject: [PATCH] refactor(wallet-rust): rename owner_signature args --- nym-wallet/src-tauri/src/operations/simulate/mixnet.rs | 8 ++++---- nym-wallet/src-tauri/src/operations/simulate/vesting.rs | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/nym-wallet/src-tauri/src/operations/simulate/mixnet.rs b/nym-wallet/src-tauri/src/operations/simulate/mixnet.rs index fab51aa228..cd60f2687f 100644 --- a/nym-wallet/src-tauri/src/operations/simulate/mixnet.rs +++ b/nym-wallet/src-tauri/src/operations/simulate/mixnet.rs @@ -40,13 +40,13 @@ async fn simulate_mixnet_operation( pub async fn simulate_bond_gateway( gateway: Gateway, pledge: DecCoin, - owner_signature: MessageSignature, + msg_signature: MessageSignature, state: tauri::State<'_, WalletState>, ) -> Result { simulate_mixnet_operation( ExecuteMsg::BondGateway { gateway, - owner_signature, + owner_signature: msg_signature, }, Some(pledge), &state, @@ -65,7 +65,7 @@ pub async fn simulate_unbond_gateway( pub async fn simulate_bond_mixnode( mixnode: MixNode, cost_params: MixNodeCostParams, - owner_signature: MessageSignature, + msg_signature: MessageSignature, pledge: DecCoin, state: tauri::State<'_, WalletState>, ) -> Result { @@ -77,7 +77,7 @@ pub async fn simulate_bond_mixnode( ExecuteMsg::BondMixnode { mix_node: mixnode, cost_params, - owner_signature, + owner_signature: msg_signature, }, Some(pledge), &state, diff --git a/nym-wallet/src-tauri/src/operations/simulate/vesting.rs b/nym-wallet/src-tauri/src/operations/simulate/vesting.rs index 123384cf2f..ecf1a53579 100644 --- a/nym-wallet/src-tauri/src/operations/simulate/vesting.rs +++ b/nym-wallet/src-tauri/src/operations/simulate/vesting.rs @@ -41,7 +41,7 @@ async fn simulate_vesting_operation( pub async fn simulate_vesting_bond_gateway( gateway: Gateway, pledge: DecCoin, - owner_signature: MessageSignature, + msg_signature: MessageSignature, state: tauri::State<'_, WalletState>, ) -> Result { let guard = state.read().await; @@ -50,7 +50,7 @@ pub async fn simulate_vesting_bond_gateway( simulate_vesting_operation( ExecuteMsg::BondGateway { gateway, - owner_signature, + owner_signature: msg_signature, amount, }, None, @@ -70,7 +70,7 @@ pub async fn simulate_vesting_unbond_gateway( pub async fn simulate_vesting_bond_mixnode( mixnode: MixNode, cost_params: MixNodeCostParams, - owner_signature: MessageSignature, + msg_signature: MessageSignature, pledge: DecCoin, state: tauri::State<'_, WalletState>, ) -> Result { @@ -83,7 +83,7 @@ pub async fn simulate_vesting_bond_mixnode( ExecuteMsg::BondMixnode { mix_node: mixnode, cost_params, - owner_signature, + owner_signature: msg_signature, amount, }, None,