difftreelog
test mock CrossAccountId::from_eth
in: master
1 file changed
pallets/nft/src/mock.rsdiffbeforeafterboth129 fn as_sub(&self) -> &u64 {129 fn as_sub(&self) -> &u64 {130 &self.0130 &self.0131 }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(ð.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