difftreelog
misk: chage uint256 to U256
in: master
2 files changed
crates/evm-coder/src/events.rsdiffbeforeafterboth15// 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/>.161617use ethereum::Log;17use ethereum::Log;18use primitive_types::{H160, H256};18use primitive_types::{H160, H256, U256};191920use crate::types::*;20use crate::types::*;212145 }45 }46}46}474748impl 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);pallets/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,
},
}