Skip to content

chore: use EthAmount directly in tests#2455

Merged
partylikeits1983 merged 1 commit intoajl-u256-felt-downscale-procedurefrom
mmagician-use-ethamount-dir
Feb 18, 2026
Merged

chore: use EthAmount directly in tests#2455
partylikeits1983 merged 1 commit intoajl-u256-felt-downscale-procedurefrom
mmagician-use-ethamount-dir

Conversation

@mmagician
Copy link
Collaborator

No description provided.

@mmagician mmagician added no changelog This PR does not require an entry in the `CHANGELOG.md` file agglayer PRs or issues related to AggLayer bridging integration pr-from-maintainers PRs that come from internal contributors or integration partners. They should be given priority labels Feb 17, 2026
Copy link
Contributor

@partylikeits1983 partylikeits1983 left a comment

Choose a reason for hiding this comment

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

Thank you!

@partylikeits1983 partylikeits1983 merged commit 53825b5 into ajl-u256-felt-downscale-procedure Feb 18, 2026
18 checks passed
@partylikeits1983 partylikeits1983 deleted the mmagician-use-ethamount-dir branch February 18, 2026 09:17
partylikeits1983 added a commit that referenced this pull request Feb 18, 2026
* wip: u256 to felt scaling procedure

* refactor: pass quotient via stack

* refactor: procedure comments

* refactor: modify tests & use assertz

* refactor: cleanup test helper inputs

* refactor: cleanup tests

* feat: add inline sanity check test

* refactor: cleanup test

* refator: simplify and rename to verify_u256_to_native_amount_conversion

* refactor: import FUNGIBLE_ASSET_MAX_AMOUNT & use word::eqz

* revert: rename to try_to_u64

* refactor: use Felt::MODULUS

* refactor: simplify EthAmount

* refactor: rename EthAmountError variants

* refactor: renamed functions and refactored errors & conversion

* fix: taplo fmt

* Update crates/miden-testing/tests/agglayer/asset_conversion.rs

Co-authored-by: Marti <marti@miden.team>

* Update crates/miden-testing/tests/agglayer/asset_conversion.rs

Co-authored-by: Marti <marti@miden.team>

* Update crates/miden-testing/tests/agglayer/asset_conversion.rs

Co-authored-by: Marti <marti@miden.team>

* Update crates/miden-testing/tests/agglayer/asset_conversion.rs

Co-authored-by: Marti <marti@miden.team>

* Update crates/miden-testing/tests/agglayer/asset_conversion.rs

Co-authored-by: Marti <marti@miden.team>

* chore: clean up EthAmountError enum and improve docs

* refactor: cleanup doc comments and test case

* refactor: use existing error messages

* fix: update global_index to use little-endian format

* fix: clean up test_utils and crypto_utils files with agglayer-new changes

* fix: rm unused function

* chore: merge agglayer-new

* feat: encorporate endianness reveral procedure

* feat: clean up tests & add fuzzing test

* refactor: add byte ordering comment & add testing attribute for from_u256

* Update crates/miden-testing/tests/agglayer/asset_conversion.rs

Co-authored-by: Marti <marti@miden.team>

* Update crates/miden-testing/tests/agglayer/asset_conversion.rs

Co-authored-by: Marti <marti@miden.team>

* refactor: cleanup fuzzing test & address comments

* chore: use EthAmount directly in tests (#2455)

---------

Co-authored-by: Marti <marti@miden.team>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agglayer PRs or issues related to AggLayer bridging integration no changelog This PR does not require an entry in the `CHANGELOG.md` file pr-from-maintainers PRs that come from internal contributors or integration partners. They should be given priority

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants