--- a/crates/evm-coder/src/abi/impls.rs +++ b/crates/evm-coder/src/abi/impls.rs @@ -147,8 +147,8 @@ } impl AbiWrite for Property { - fn abi_write(&self, writer: &mut AbiWriter) { - (&self.key, &self.value).abi_write(writer); + fn abi_write<'a>(&'a self, writer: &mut AbiWriter) { + (self.key.clone(), self.value.clone()).abi_write(writer); } } --- a/pallets/common/src/eth.rs +++ b/pallets/common/src/eth.rs @@ -123,7 +123,7 @@ impl EthCrossAccount { pub fn from_sub_cross_account(cross_account_id: &T::CrossAccountId) -> Self where - T: pallet_evm::account::Config, + T: pallet_evm::Config, T::AccountId: AsRef<[u8; 32]>, { if cross_account_id.is_canonical_substrate() { @@ -141,7 +141,7 @@ pub fn into_sub_cross_account(&self) -> evm_coder::execution::Result where - T: pallet_evm::account::Config, + T: pallet_evm::Config, T::AccountId: From<[u8; 32]>, { if self.eth == Default::default() && self.sub == Default::default() {