Skip to content
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

Conversation

joepetrowski
Copy link
Contributor

Change the asset class creation deposits to use standard storage deposit functionality.

Similar to #237

@@ -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);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

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?

Copy link
Contributor Author

@joepetrowski joepetrowski Mar 28, 2024

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.

Copy link
Contributor

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.

@joepetrowski
Copy link
Contributor Author

/merge

@bkchr
Copy link
Contributor

bkchr commented Mar 28, 2024

/merge

@fellowship-merge-bot fellowship-merge-bot bot merged commit 256059b into polkadot-fellows:main Mar 28, 2024
36 of 37 checks passed
@fellowship-merge-bot
Copy link
Contributor

Enabled auto-merge in Pull Request

Available commands
  • /merge: Enables auto-merge for Pull Request
  • /merge cancel: Cancels auto-merge for Pull Request
  • /merge help: Shows this menu

For more information see the documentation

@joepetrowski joepetrowski deleted the set-asset-creation-deposit branch March 29, 2024 08:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants