Skip to content

fix(ckerc20): bug in renaming field - #1429

Merged
gregorydemay merged 2 commits into
masterfrom
gdemay/XC-189-fix-stable-memory
Sep 11, 2024
Merged

gregorydemay merged 2 commits into
masterfrom
gdemay/XC-189-fix-stable-memory

Conversation

@gregorydemay

@gregorydemay gregorydemay commented Sep 11, 2024 •

Copy link
Copy Markdown
Contributor

(XC-189): Fix a bug introduced in #1312 where a field stored in stable memory was renamed. The rename is kept transparent using #[serde(rename)] and test that ensures that changes in stable memory are backwards-compatible were fixed as well.

@github-actions github-actions Bot added the fix label Sep 11, 2024
@gregorydemay
gregorydemay marked this pull request as ready for review September 11, 2024 10:09
@gregorydemay
gregorydemay requested a review from a team as a code owner September 11, 2024 10:09

@ninegua ninegua left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Interesting catch! Did it fail to upgrade when you test on sepolia?

@gregorydemay

Copy link
Copy Markdown
Contributor Author

Interesting catch! Did it fail to upgrade when you test on sepolia?

@ninegua : yes exactly, I got the following error

The invocation to the wallet call forward method failed with the error: An error happened during the call: 5: Error from Canister 2s5qh-7aaaa-aaaar-qadya-cai: Canister called `ic0.trap` with message: Panicked at 'failed to decode state bytes [...]: Semantic(None, "missing field `token_symbol`")', rs/ethereum/ledger-suite-orchestrator/src/state/mod.rs:506:29.

@gregorydemay
gregorydemay added this pull request to the merge queue Sep 11, 2024
Merged via the queue into master with commit 48f24e7 Sep 11, 2024
@gregorydemay
gregorydemay deleted the gdemay/XC-189-fix-stable-memory branch September 11, 2024 15:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants