-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrade to Polkadot v1.0.0 #302
Conversation
3756413
to
a8a4cee
Compare
)?; | ||
|
||
Self::deposit_event(Event::OriginOfShellMinted { | ||
rarity_type, | ||
collection_id: origin_of_shell_collection_id, | ||
collection_id: origin_of_shell_collection_id.into(), | ||
nft_id, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see most have nft_id.into()
but others do not. Do they all need to have .into()
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Basically PW pallet use CollectionId
and NftId
from rmrk-primitives
, which are not associate type CollectionId
and ItemId
, so it has to convert.
I do not change PW codes too much, only add into()
when the compiler says error.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The error looks like this
error[E0308]: mismatched types
--> pallets/phala-world/src/nft_sale.rs:1581:19
|
1581 | collection_id: origin_of_shell_collection_id,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected associated type, found `u32`
|
= note: expected associated type `<T as pallet_rmrk_core::Config>::CollectionId`
found type `u32`
= help: consider constraining the associated type `<T as pallet_rmrk_core::Config>::CollectionId` to `u32` or calling a method that returns `<T as pallet_rmrk_core::Config>::CollectionId`
= note: for more information, visit https://doc.rust-lang.org/book/ch19-03-advanced-traits.html
help: call `Into::into` on this expression to convert `u32` into `<T as pallet_rmrk_core::Config>::CollectionId`
|
1581 | collection_id: origin_of_shell_collection_id.into(),
| +++++++
For more information about this error, try `rustc --explain E0308`.
a8a4cee
to
cd8bc46
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SubBridge & inDEX looks good to me, btw already update sygma to include this fix
@h4x3rotab I'm merging this now, feel free to review later |
paritytech/substrate@polkadot-v0.9.43...polkadot-v1.0.0
paritytech/cumulus@polkadot-v0.9.43...polkadot-v1.0.0
https://github.com/paritytech/polkadot/releases/tag/v1.0.0
Phala-Network/phala-blockchain#1363
This is a giant PR
Phala-Network/phala-blockchain#1391 requires migration
No upstream migration is needed