Skip to content

Port more contract tests to rust#2604

Merged
ales-otf merged 13 commits into
devnet-readyfrom
feat/precompile-rust-tests
Apr 22, 2026
Merged

Port more contract tests to rust#2604
ales-otf merged 13 commits into
devnet-readyfrom
feat/precompile-rust-tests

Conversation

@ales-otf

@ales-otf ales-otf commented Apr 21, 2026

Copy link
Copy Markdown
Contributor

Description

This PR ports these contract tests to rust:

  • ed25519
  • uid lookup
  • metagraph
  • neuron

It also moves the contract logic-only tests from runtime's integration tests to precompile's units per module tests.

Related Issue(s)

  • Closes #[issue number]

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update
  • Other (please describe):

Breaking Change

If this PR introduces a breaking change, please provide a detailed description of the impact and the migration path for existing applications.

Checklist

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have run ./scripts/fix_rust.sh to ensure my code is formatted and linted correctly
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules

Screenshots (if applicable)

Please include any relevant screenshots or GIFs that demonstrate the changes made.

Additional Notes

Please provide any additional information or context that may be helpful for reviewers.

@ales-otf ales-otf added the skip-cargo-audit This PR fails cargo audit but needs to be merged anyway label Apr 21, 2026
@ales-otf ales-otf marked this pull request as ready for review April 21, 2026 13:29
Comment thread precompiles/src/lib.rs Outdated
@shamil-gadelshin shamil-gadelshin self-requested a review April 22, 2026 09:14

@open-junius open-junius left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Looks good to me.

@ales-otf ales-otf merged commit 656617f into devnet-ready Apr 22, 2026
202 of 204 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip-cargo-audit This PR fails cargo audit but needs to be merged anyway

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants