-
Notifications
You must be signed in to change notification settings - Fork 96
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
Change Asset Class Creation Deposits #259
Change Asset Class Creation Deposits #259
Conversation
@@ -52,7 +52,7 @@ frame_support::parameter_types! { | |||
pub UncongestedMessage: Xcm<()> = build_congestion_message(false).into(); | |||
|
|||
/// Should match the `AssetDeposit` of the `ForeignAssets` pallet on Asset Hub. | |||
pub const CreateForeignAssetDeposit: u128 = 10 * UNITS; | |||
pub const CreateForeignAssetDeposit: u128 = system_para_deposit(1, 190); |
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.
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.
190 is based on the bytes? there should be some way to get that number without hardcoding no?
with max_encoded_len
?
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.
It is the encoded length of AssetDetails
in this configuration.
I'm not sure if we can use max_encoded_len
here? ( @ggwpez ?) I calculated it by writing a test and asserting encoded_len
.
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.
If you remove the const it should work.
/merge |
/merge |
256059b
into
polkadot-fellows:main
Enabled Available commands
For more information see the documentation |
Change the asset class creation deposits to use standard storage deposit functionality.
Similar to #237