From 3e3db9a6abc3cefef3750b02cdcfe39b72fd10c4 Mon Sep 17 00:00:00 2001 From: XuNeal Date: Wed, 13 Dec 2023 10:07:04 +0800 Subject: [PATCH] typo: remove some todo --- token-core/tcx/src/handler.rs | 1 - token-core/tcx/src/lib.rs | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/token-core/tcx/src/handler.rs b/token-core/tcx/src/handler.rs index 529b4882..401ff28c 100644 --- a/token-core/tcx/src/handler.rs +++ b/token-core/tcx/src/handler.rs @@ -983,7 +983,6 @@ pub(crate) fn sign_authentication_message(data: &[u8]) -> Result> { }) } -// TODO: add eth sub addr support pub(crate) fn derive_sub_accounts(data: &[u8]) -> Result> { let param: DeriveSubAccountsParam = DeriveSubAccountsParam::decode(data).expect("DeriveSubAccountsParam"); diff --git a/token-core/tcx/src/lib.rs b/token-core/tcx/src/lib.rs index ddb4477a..9ed4f2c4 100644 --- a/token-core/tcx/src/lib.rs +++ b/token-core/tcx/src/lib.rs @@ -100,7 +100,7 @@ pub unsafe extern "C" fn call_tcx_api(hex_str: *const c_char) -> *const c_char { "zksync_private_key_to_pubkey_hash" => { landingpad(|| zksync_private_key_to_pubkey_hash(&action.param.unwrap().value)) } - "generate_mnemonic" => landingpad(|| generate_mnemonic()), + // "generate_mnemonic" => landingpad(|| generate_mnemonic()), "remove_wallets" => landingpad(|| remove_wallet(&action.param.unwrap().value)), "encrypt_data_to_ipfs" => landingpad(|| encrypt_data_to_ipfs(&action.param.unwrap().value)), "decrypt_data_from_ipfs" => {