git.delta.rocks / unique-network / refs/commits / 489bde0fa2e0

difftreelog

fix after rebase

Trubnikov Sergey2022-11-25parent: #b7f8a6b.patch.diff
in: master

2 files changed

modifiedcrates/evm-coder/src/abi/impls.rsdiffbeforeafterboth
--- 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);
 	}
 }
 
modifiedpallets/common/src/eth.rsdiffbeforeafterboth
123impl EthCrossAccount {123impl EthCrossAccount {
124 pub fn from_sub_cross_account<T>(cross_account_id: &T::CrossAccountId) -> Self124 pub fn from_sub_cross_account<T>(cross_account_id: &T::CrossAccountId) -> Self
125 where125 where
126 T: pallet_evm::account::Config,126 T: pallet_evm::Config,
127 T::AccountId: AsRef<[u8; 32]>,127 T::AccountId: AsRef<[u8; 32]>,
128 {128 {
129 if cross_account_id.is_canonical_substrate() {129 if cross_account_id.is_canonical_substrate() {
141141
142 pub fn into_sub_cross_account<T>(&self) -> evm_coder::execution::Result<T::CrossAccountId>142 pub fn into_sub_cross_account<T>(&self) -> evm_coder::execution::Result<T::CrossAccountId>
143 where143 where
144 T: pallet_evm::account::Config,144 T: pallet_evm::Config,
145 T::AccountId: From<[u8; 32]>,145 T::AccountId: From<[u8; 32]>,
146 {146 {
147 if self.eth == Default::default() && self.sub == Default::default() {147 if self.eth == Default::default() && self.sub == Default::default() {