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
634 }634 }
635635
636 ensure!(636 ensure!(
637 *sender.as_eth() == *from.as_eth(),637 sender.conv_eq(from),
638 <CommonError<T>>::AddressIsNotEthMirror638 <CommonError<T>>::AddressIsNotEthMirror
639 );639 );
640640
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
--- a/pallets/refungible/src/lib.rs
+++ b/pallets/refungible/src/lib.rs
@@ -1124,7 +1124,7 @@
 		<PalletCommon<T>>::ensure_correct_receiver(to)?;
 
 		ensure!(
-			*sender.as_eth() == *from.as_eth(),
+			sender.conv_eq(from),
 			<CommonError<T>>::AddressIsNotEthMirror
 		);