git.delta.rocks / unique-network / refs/commits / ceb429418ea1

difftreelog

test mock CrossAccountId::from_eth

Yaroslav Bolyukin2021-08-31parent: #1aac61d.patch.diff
in: master

1 file changed

modifiedpallets/nft/src/mock.rsdiffbeforeafterboth
129 fn as_sub(&self) -> &u64 {129 fn as_sub(&self) -> &u64 {
130 &self.0130 &self.0
131 }131 }
132 fn from_eth(_eth: sp_core::H160) -> Self {132 fn from_eth(eth: sp_core::H160) -> Self {
133 let mut sub_raw = [0; 8];
134 sub_raw.copy_from_slice(&eth.0[0..8]);
135 let sub = u64::from_be_bytes(sub_raw);
133 unimplemented!()136 Self(sub, eth)
134 }137 }
135 fn as_eth(&self) -> &sp_core::H160 {138 fn as_eth(&self) -> &sp_core::H160 {
136 &self.1139 &self.1