Skip to content

Commit 3486f8e

Browse files
author
liyukun
committed
feat: modify command and remove migration dir
1 parent e1fd92c commit 3486f8e

File tree

11 files changed

+10
-55
lines changed

11 files changed

+10
-55
lines changed

crates/relayer-cli/src/commands/keys/add.rs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,13 @@ pub fn restore_key(
276276
ChainType::Ckb => "ckb",
277277
ChainType::Ckb4Ibc => "ckb4ibc",
278278
};
279+
let address_type = match config.r#type() {
280+
ChainType::CosmosSdk => &config.cosmos().address_type,
281+
ChainType::Eth => todo!(),
282+
ChainType::Axon => &AddressType::Axon,
283+
ChainType::Ckb | ChainType::Ckb4Ibc => &AddressType::Ckb,
284+
};
285+
279286
let key_pair = {
280287
let mut keyring = KeyRing::new_secp256k1(Store::Test, account_prefix, config.id())?;
281288

@@ -284,7 +291,7 @@ pub fn restore_key(
284291
let key_pair = Secp256k1KeyPair::from_mnemonic(
285292
&mnemonic_content,
286293
hdpath,
287-
&config.cosmos().address_type,
294+
address_type,
288295
keyring.account_prefix(),
289296
)?;
290297

crates/relayer/tests/config/fixtures/relayer_conf_example.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,5 +107,5 @@ connection_type_args = "0xf49ce32397c6741998b04d7548c5ed372007424daf67ee5bfadaef
107107
channel_type_args = "0xfbe09e8ff3e5f3d0fab7cc7431feed2131846184d356a9626639f55e7f471846"
108108
packet_type_args = "0xad8bca6ff76ad676bb7eb35882faf259cb6ff50be8ce9c0b9d6f51728ec54fab"
109109
[chains.onchain_light_clients]
110-
Ckb4Ibc = { chain_id = "ckb4ibc-1", client_id = "29866e133f707f070459b905065294ab1a7b70bea200952a080f849319ae6202", client_cell_type_args = "0x29866e133f707f070459b905065294ab1a7b70bea200952a080f849319ae6202" }
111-
Axon = { chain_id = "axon-0", client_id = "07-axon-x", client_cell_type_args = "0x29866e133f707f070459b905065294ab1a7b70bea200952a080f849319ae6202" }
110+
Ckb4Ibc = { chain_id = "ckb4ibc-1", client_cell_type_args = "0x29866e133f707f070459b905065294ab1a7b70bea200952a080f849319ae6202" }
111+
Axon = { chain_id = "axon-0", client_cell_type_args = "0x29866e133f707f070459b905065294ab1a7b70bea200952a080f849319ae6202" }
File renamed without changes.

tools/ibc-test/contracts/deployment/migration/2023-10-10-065715.json

Lines changed: 0 additions & 13 deletions
This file was deleted.

tools/ibc-test/contracts/deployment/migration/2023-10-10-073810.json

Lines changed: 0 additions & 13 deletions
This file was deleted.

tools/ibc-test/contracts/deployment/migration/2023-10-10-074229.json

Lines changed: 0 additions & 13 deletions
This file was deleted.

tools/ibc-test/contracts/deployment/migration/2023-10-10-074350.json

Lines changed: 0 additions & 13 deletions
This file was deleted.

tools/ibc-test/contracts/ibc-sudt-transfer

100755100644
-1.45 KB
Binary file not shown.
-9.2 KB
Binary file not shown.
-9.16 KB
Binary file not shown.

0 commit comments

Comments
 (0)