From 144217f68001754da5e74b0beda24a7b733cfbc3 Mon Sep 17 00:00:00 2001 From: cryptoAtwill Date: Thu, 30 Nov 2023 14:01:47 +0800 Subject: [PATCH 1/2] fix gateway conversion --- ipc/cli/src/commands/crossmsg/fund.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ipc/cli/src/commands/crossmsg/fund.rs b/ipc/cli/src/commands/crossmsg/fund.rs index 09dd4997..35a21261 100644 --- a/ipc/cli/src/commands/crossmsg/fund.rs +++ b/ipc/cli/src/commands/crossmsg/fund.rs @@ -34,7 +34,7 @@ impl CommandLineHandler for Fund { None => None, }; let gateway_addr = match &arguments.gateway_address { - Some(address) => Some(Address::from_str(address)?), + Some(address) => Some(require_fil_addr_from_str(address)?), None => None, }; From 8420d09e4b1cedc017f00944779d6cf92900fa91 Mon Sep 17 00:00:00 2001 From: cryptoAtwill Date: Thu, 30 Nov 2023 14:12:16 +0800 Subject: [PATCH 2/2] lint --- ipc/cli/src/commands/crossmsg/fund.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/ipc/cli/src/commands/crossmsg/fund.rs b/ipc/cli/src/commands/crossmsg/fund.rs index 35a21261..d7addf45 100644 --- a/ipc/cli/src/commands/crossmsg/fund.rs +++ b/ipc/cli/src/commands/crossmsg/fund.rs @@ -4,7 +4,6 @@ use async_trait::async_trait; use clap::Args; -use fvm_shared::address::Address; use ipc_sdk::subnet_id::SubnetID; use std::{fmt::Debug, str::FromStr};