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

[eth-rpc] Fixes #6317

Merged
merged 12 commits into from
Nov 4, 2024
Merged

[eth-rpc] Fixes #6317

merged 12 commits into from
Nov 4, 2024

Conversation

pgherveou
Copy link
Contributor

@pgherveou pgherveou commented Oct 31, 2024

Various fixes for the release of eth-rpc & ah-westend-runtime

  • Bump asset-hub westend spec version
  • Fix the status of the Receipt to properly report failed transactions
  • Fix value conversion between native and eth decimal representation

@pgherveou
Copy link
Contributor Author

/cmd prdoc --audience runtime_dev --bump patch

@pgherveou pgherveou added R0-silent Changes should not be mentioned in any release notes T7-smart_contracts This PR/Issue is related to smart contracts. labels Oct 31, 2024
prdoc/pr_6317.prdoc Outdated Show resolved Hide resolved
@pgherveou pgherveou requested a review from athei November 1, 2024 19:59
@pgherveou pgherveou changed the title Bump asset-hub-westend spec version [eth-rpc] Fix balance transfer and receipt info results Nov 1, 2024
@pgherveou
Copy link
Contributor Author

Re-purposed the PR to include various fixes noticed today during testing

@@ -124,7 +124,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
spec_name: create_runtime_str!("westmint"),
impl_name: create_runtime_str!("westmint"),
authoring_version: 1,
spec_version: 1_016_002,
spec_version: 1_016_004,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

note: bumping twice as 003 has been pushed to westend already

@pgherveou pgherveou changed the title [eth-rpc] Fix balance transfer and receipt info results [eth-rpc] Fixes Nov 2, 2024
Comment on lines +306 to +309

/// The ratio between the decimal representation of the native token and the ETH token.
#[pallet::constant]
type NativeToEthRatio: Get<u32>;
Copy link
Member

Choose a reason for hiding this comment

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

Isn't handled by adding the network with the correct decimals to the wallet?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

in theory yes, but in practice no wallet support anything else than 18 decimals MetaMask/metamask-extension#15168

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.

Thanks!

@pgherveou pgherveou added this pull request to the merge queue Nov 4, 2024
Merged via the queue into master with commit 7f80f45 Nov 4, 2024
199 of 202 checks passed
@pgherveou pgherveou deleted the pg/bump-ahw branch November 4, 2024 10:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
R0-silent Changes should not be mentioned in any release notes T7-smart_contracts This PR/Issue is related to smart contracts.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants