git.delta.rocks / unique-network / refs/commits / 7aa4c5840673

difftreelog

misk: chage uint256 to U256

Trubnikov Sergey2023-01-17parent: #1107c89.patch.diff
in: master

2 files changed

modifiedcrates/evm-coder/src/events.rsdiffbeforeafterboth
15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.
1616
17use ethereum::Log;17use ethereum::Log;
18use primitive_types::{H160, H256};18use primitive_types::{H160, H256, U256};
1919
20use crate::types::*;20use crate::types::*;
2121
45 }45 }
46}46}
4747
48impl ToTopic for uint256 {48impl ToTopic for U256 {
49 fn to_topic(&self) -> H256 {49 fn to_topic(&self) -> H256 {
50 let mut out = [0u8; 32];50 let mut out = [0u8; 32];
51 self.to_big_endian(&mut out);51 self.to_big_endian(&mut out);
modifiedpallets/common/src/erc.rsdiffbeforeafterboth
--- 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,
 	},
 }