diff --git a/explorer/src/service/util.rs b/explorer/src/service/util.rs index a239bbb..f515ad6 100644 --- a/explorer/src/service/util.rs +++ b/explorer/src/service/util.rs @@ -10,7 +10,7 @@ use { #[allow(unused)] #[inline(always)] pub fn public_key_to_base64(key: &XfrPublicKey) -> String { - engine::general_purpose::URL_SAFE.encode(&ZeiFromToBytes::zei_to_bytes(key)) + engine::general_purpose::URL_SAFE.encode(ZeiFromToBytes::zei_to_bytes(key)) } #[allow(unused)] diff --git a/module/src/utils/crypto.rs b/module/src/utils/crypto.rs index ade772b..04ba477 100644 --- a/module/src/utils/crypto.rs +++ b/module/src/utils/crypto.rs @@ -1,6 +1,5 @@ use bech32::ToBase32; -use ethereum::LegacyTransaction; -use ethereum::LegacyTransactionMessage; +use ethereum::{LegacyTransaction, LegacyTransactionMessage}; use ethereum_types::{H160, H256}; use ruc::eg; use sha3::{Digest, Keccak256};