From 7aa4c5840673e00c22a4696b6e0f266878486b18 Mon Sep 17 00:00:00 2001 From: Trubnikov Sergey Date: Tue, 17 Jan 2023 04:11:13 +0000 Subject: [PATCH] misk: chage uint256 to U256 --- --- a/crates/evm-coder/src/events.rs +++ b/crates/evm-coder/src/events.rs @@ -15,7 +15,7 @@ // along with Unique Network. If not, see . use ethereum::Log; -use primitive_types::{H160, H256}; +use primitive_types::{H160, H256, U256}; use crate::types::*; @@ -45,7 +45,7 @@ } } -impl ToTopic for uint256 { +impl ToTopic for U256 { fn to_topic(&self) -> H256 { let mut out = [0u8; 32]; self.to_big_endian(&mut out); --- a/pallets/common/src/erc.rs +++ b/pallets/common/src/erc.rs @@ -26,6 +26,7 @@ }; use pallet_evm_coder_substrate::dispatch_to_evm; use sp_std::{vec, vec::Vec}; +use sp_core::U256; use up_data_structs::{ AccessMode, CollectionMode, CollectionPermissions, OwnerRestrictedSet, Property, SponsoringRateLimit, SponsorshipState, @@ -67,7 +68,7 @@ #[indexed] collection_id: address, /// Token ID. - token_id: uint256, + token_id: U256, }, } -- gitstuff