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

Fix storage deposit limit encoding #751

Merged
merged 11 commits into from
Sep 23, 2022
Merged

Conversation

ascjones
Copy link
Collaborator

@ascjones ascjones commented Sep 20, 2022

A bug in the subxt codegen meant that compact types as type parameters were not generated correctly. storage_deposit_limit is an Option<Compact<u128>> but was generated as a Option<u128> which resulted in incorrect encoding. paritytech/subxt#651 fixes that issue and this PR uses the new subxt release and fixes the issue here.

Fixes #734

@ascjones ascjones changed the title Aj/fix storage deposit limit Fix storage deposit limit encoding Sep 20, 2022
@ascjones ascjones marked this pull request as ready for review September 22, 2022 16:39
@@ -100,26 +100,27 @@ impl DisplayEvents {

let event_data = &mut event.field_bytes();
let mut unnamed_field_name = 0;
for (field, field_ty) in event_fields {
for field in event_fields {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Note that changes here are only to fix compilation because of the updating to subxt 0.24, and unrelated to the bugfix itself.

@ascjones ascjones merged commit 93a3636 into master Sep 23, 2022
@ascjones ascjones deleted the aj/fix-storage-deposit-limit branch September 23, 2022 16:09
@ascjones ascjones mentioned this pull request Oct 3, 2022
@ascjones ascjones mentioned this pull request Feb 14, 2023
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.

Cannot pass --storage-deposit-limit to cargo contract call
2 participants