Skip to content
This repository has been archived by the owner on Jan 11, 2024. It is now read-only.

Commit

Permalink
ipc-299: address review
Browse files Browse the repository at this point in the history
  • Loading branch information
adlrocha committed Sep 14, 2023
1 parent fd9e489 commit c434eb1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions ipc/cli/src/commands/wallet/balances.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use fvm_shared::{address::Address, econ::TokenAmount};
use ipc_identity::{EthKeyAddress, EvmKeyStore, WalletType};
use ipc_provider::manager::evm::ethers_address_to_fil_address;
use ipc_sdk::subnet_id::SubnetID;
use std::{fmt::Debug, str::FromStr, sync::Arc};
use std::{fmt::Debug, str::FromStr};

use crate::{get_ipc_provider, CommandLineHandler, GlobalArguments};

Expand All @@ -25,7 +25,7 @@ impl CommandLineHandler for WalletBalances {
let provider = get_ipc_provider(global)?;

let wallet_type = WalletType::from_str(&arguments.wallet_type)?;
let subnet = Arc::new(SubnetID::from_str(&arguments.subnet)?);
let subnet = SubnetID::from_str(&arguments.subnet)?;
match wallet_type {
WalletType::Evm => {
let wallet = provider.evm_wallet();
Expand Down
2 changes: 1 addition & 1 deletion ipc/identity/src/evm/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ impl From<EthKeyAddress> for ethers::types::Address {
#[cfg(feature = "with-ethers")]
impl ToString for EthKeyAddress {
fn to_string(&self) -> String {
if self == &Self::default_key() {
if self == &Self::default() {
return String::from("default-key");
}
format!("{:?}", self.inner)
Expand Down
2 changes: 1 addition & 1 deletion ipc/identity/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ mod evm;
mod fvm;

#[cfg(feature = "with-ethers")]
pub use crate::evm::{random_key_info, EthKeyAddress};
pub use crate::evm::{random_eth_key_info, EthKeyAddress};
pub use crate::evm::{
KeyInfo as EvmKeyInfo, KeyStore as EvmKeyStore, PersistentKeyInfo, PersistentKeyStore,
DEFAULT_KEYSTORE_NAME,
Expand Down

0 comments on commit c434eb1

Please sign in to comment.