diff --git a/clients/credential/src/client.rs b/clients/credential/src/client.rs index dae2d9e91f..ef0fc6d9fd 100644 --- a/clients/credential/src/client.rs +++ b/clients/credential/src/client.rs @@ -8,7 +8,7 @@ use url::Url; use crate::error::Result; use crate::{MNEMONIC, NYMD_URL}; -use network_defaults::{DEFAULT_NETWORK, DENOM, VOUCHER_INFO}; +use network_defaults::{DEFAULT_NETWORK, MIX_DENOM, VOUCHER_INFO}; use validator_client::nymd::traits::CoconutBandwidthSigningClient; use validator_client::nymd::{Coin, Fee, NymdClient, SigningNymdClient}; @@ -34,7 +34,7 @@ impl Client { encryption_key: String, fee: Option, ) -> Result { - let amount = Coin::new(amount as u128, DENOM.to_string()); + let amount = Coin::new(amount as u128, MIX_DENOM.base.to_string()); Ok(self .nymd_client .deposit( diff --git a/validator-api/src/coconut/tests.rs b/validator-api/src/coconut/tests.rs index 5e34f3962c..021902e32d 100644 --- a/validator-api/src/coconut/tests.rs +++ b/validator-api/src/coconut/tests.rs @@ -83,8 +83,8 @@ impl super::client::Client for DummyClient { async fn execute_proposal( &self, - proposal_id: u64, - fee: Option, + _proposal_id: u64, + _fee: Option, ) -> crate::coconut::error::Result<()> { todo!() }