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 custom transaction error code clash, and make ethereum tests easier to write #3359

Merged
merged 7 commits into from
Jan 30, 2025

Conversation

teor2345
Copy link
Member

@teor2345 teor2345 commented Jan 28, 2025

How to review this PR

This PR is the first in a series of PRs which add "private EVM" functionality to subspace. It moves some code around and makes minor fixes.

The second PR in the series implements the private EVM feature, it is #3350.

The third PR in the series is #3360, it applies a storage migration to the Taurus runtime. (This storage isn't currently deployed on mainnet, so a migration isn't needed there.)

What it does

  • fixes conflicting custom transaction error codes
  • defines EthereumAccountId and EthereumSignature primitive types
  • makes it easier to test using ethereum transactions or EVM runtimes, via the transaction creation functions under the test-ethereum feature

Code contributor checklist:

@teor2345 teor2345 added bug Something isn't working refactor labels Jan 28, 2025
@teor2345 teor2345 self-assigned this Jan 28, 2025
vedhavyas
vedhavyas previously approved these changes Jan 28, 2025
Copy link
Member

@vedhavyas vedhavyas left a comment

Choose a reason for hiding this comment

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

Make sense

@@ -21,6 +21,7 @@ codec = { package = "parity-scale-codec", version = "3.6.12", default-features =
domain-check-weight = { version = "0.1.0", path = "../../pallets/domain-check-weight", default-features = false }
domain-pallet-executive = { version = "0.1.0", path = "../../pallets/executive", default-features = false }
domain-runtime-primitives = { version = "0.1.0", path = "../../primitives/runtime", default-features = false }
# just here to activate the serde feature
Copy link
Member

Choose a reason for hiding this comment

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

can't we just enable this feature through the primitives here ?
The comment is confusing without context

Copy link
Member Author

Choose a reason for hiding this comment

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

I tried that yesterday and it didn’t work. I’ll have another go today.

Copy link
Member Author

Choose a reason for hiding this comment

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

Well, now it works 🤷

@teor2345 teor2345 added this pull request to the merge queue Jan 30, 2025
Merged via the queue into main with commit 56d135e Jan 30, 2025
10 checks passed
@teor2345 teor2345 deleted the private-evm-prep branch January 30, 2025 09:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working refactor
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants