-
Notifications
You must be signed in to change notification settings - Fork 349
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
Moves precompile-utils into frontier (#2181) #2427
Conversation
@@ -733,45 +733,42 @@ fn read_complex_solidity_function() { | |||
#[test] | |||
fn junctions_decoder_works() { | |||
let writer_output = Writer::new() | |||
.write(Junctions::X1(Junction::OnlyChild)) | |||
.write(XCMJunctions(Junctions::X1(Junction::OnlyChild))) |
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.
Small grumble: Following Rust naming conventions it should be XcmJunctions
.
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.
done, thanks! 👍
Cargo.lock
Outdated
@@ -2971,7 +2941,7 @@ dependencies = [ | |||
"fc-rpc-core", | |||
"fc-storage", | |||
"fp-ethereum", | |||
"fp-evm", | |||
"fp-evm 3.0.0-dev (git+https://github.com/moonbeam-foundation/frontier?branch=moonbeam-polkadot-v0.9.43)", |
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.
Theses kind of lines reveals that you have a problem of git dependencies duplication, please fix it
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.
removed
@rimbi Can you please fix the conflicts with master? this is needed for the CI to run. |
Coverage generated "Fri Aug 11 13:34:36 UTC 2023": Master coverage: 87.39% |
@rimbi If this is ready for review, please move it from draft to PR |
@@ -876,7 +876,7 @@ fn transfer_multi_assets_is_not_sorted_error() { | |||
PCall::transfer_multi_assets { | |||
assets: assets.into(), | |||
fee_item: 0, | |||
destination: destination.clone(), | |||
destination: destination.clone().into(), |
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 are a lot of changes like this (adding a .into()
call), do you know why?
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.
The reason is that I had to use new type pattern for the types like MultiLocation
here.
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.
Oh, is this because Codec
is no longer defined in the same crate? Hmmm...
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.
Exactly
@crystalin It will be ready for review only after:
This PR and the corresponding one in our frontier repo was used to show that the changes work. |
Pleease move the PR to "ready for review" and merge master into it, thank you |
What does it do?
Moves precompile-utils from moonbeam into frontier.
precompile-utils
precompile-utils-macro
precompile-utils-tests-external
precompile-utils
into a separate crate calledprecompile-utils-xcm-codec
and leaves it in moonbeam.Here is the complementary PR: moonbeam-foundation/frontier#177
What important points reviewers should know?
Is there something left for follow-up PRs?
What alternative implementations were considered?
Are there relevant PRs or issues in other repositories (Substrate, Polkadot, Frontier, Cumulus)?
What value does it bring to the blockchain users?