git.delta.rocks / unique-network / refs/commits / 8162cc088fb8

difftreelog

chore fix code review requests

Grigoriy Simonov2023-01-10parent: #2c03632.patch.diff
in: master

3 files changed

modifiedpallets/fungible/src/lib.rsdiffbeforeafterboth
--- a/pallets/fungible/src/lib.rs
+++ b/pallets/fungible/src/lib.rs
@@ -634,7 +634,7 @@
 		}
 
 		ensure!(
-			*sender.as_eth() == *from.as_eth(),
+			sender.conv_eq(from),
 			<CommonError<T>>::AddressIsNotEthMirror
 		);
 
modifiedpallets/nonfungible/src/lib.rsdiffbeforeafterboth
--- a/pallets/nonfungible/src/lib.rs
+++ b/pallets/nonfungible/src/lib.rs
@@ -1196,7 +1196,7 @@
 		}
 
 		ensure!(
-			*sender.as_eth() == *from.as_eth(),
+			sender.conv_eq(from),
 			<CommonError<T>>::AddressIsNotEthMirror
 		);
 
modifiedpallets/refungible/src/lib.rsdiffbeforeafterboth
1124 <PalletCommon<T>>::ensure_correct_receiver(to)?;1124 <PalletCommon<T>>::ensure_correct_receiver(to)?;
11251125
1126 ensure!(1126 ensure!(
1127 *sender.as_eth() == *from.as_eth(),1127 sender.conv_eq(from),
1128 <CommonError<T>>::AddressIsNotEthMirror1128 <CommonError<T>>::AddressIsNotEthMirror
1129 );1129 );
11301130