Skip to content

Fix test failure and clippy warning in crypto_utils after adopting bytes_to_packed_u32_felts#2360

Merged
mmagician merged 4 commits intommagician-use-byte-felt-helperfrom
copilot/sub-pr-2359
Jan 28, 2026
Merged

Fix test failure and clippy warning in crypto_utils after adopting bytes_to_packed_u32_felts#2360
mmagician merged 4 commits intommagician-use-byte-felt-helperfrom
copilot/sub-pr-2359

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Jan 28, 2026

  • Remove unused import miden_crypto::FieldElement from crypto_utils.rs
  • Fix test failure in test_keccak_hash_get_leaf_value - assertion expects 32 felts but gets 29
  • Run make format to ensure code formatting is correct
  • Run make fix and make clippy to verify all linting passes
  • Run tests to verify the fix works

💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI and others added 2 commits January 28, 2026 17:04
Co-authored-by: mmagician <8402446+mmagician@users.noreply.github.com>
Co-authored-by: mmagician <8402446+mmagician@users.noreply.github.com>
Copy link
Copy Markdown
Contributor Author

Copilot AI commented Jan 28, 2026

Just as a heads up, I was blocked by some firewall rules while working on your feedback. Expand below for details.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • https://api.github.com/repos/0xMiden/miden-base/actions/runs
    • Triggering command: /usr/bin/curl curl -s -H Accept: application/vnd.github&#43;json REDACTED (http block)

If you need me to access, download, or install something from one of these locations, you can either:

Copilot AI changed the title [WIP] Chore: Use bytes_to_packed_u32_felts instead of custom definition Fix test failure and clippy warning in crypto_utils after adopting bytes_to_packed_u32_felts Jan 28, 2026
Copilot AI requested a review from mmagician January 28, 2026 17:13
@mmagician
Copy link
Copy Markdown
Collaborator

@copilot make sure you address fmt and lints

Co-authored-by: mmagician <8402446+mmagician@users.noreply.github.com>
Copy link
Copy Markdown
Contributor Author

Copilot AI commented Jan 28, 2026

@copilot make sure you address fmt and lints

Applied formatting and verified all lints pass. Changes committed in 4cc7942.

@mmagician mmagician marked this pull request as ready for review January 28, 2026 22:35
@mmagician mmagician merged commit fb0d179 into mmagician-use-byte-felt-helper Jan 28, 2026
14 of 15 checks passed
@mmagician mmagician deleted the copilot/sub-pr-2359 branch January 28, 2026 22:35
mmagician added a commit that referenced this pull request Jan 29, 2026
… `miden-base` (#2359)

* chore: use the helper from vm

* Fix test failure and clippy warning in crypto_utils after adopting bytes_to_packed_u32_felts (#2360)

* Initial plan

* Fix lint and test failures: pad felts and keep FieldElement import

Co-authored-by: mmagician <8402446+mmagician@users.noreply.github.com>

* Add constant for LEAF_DATA_FELTS to improve code maintainability

Co-authored-by: mmagician <8402446+mmagician@users.noreply.github.com>

* Apply rustfmt formatting to comment line length

Co-authored-by: mmagician <8402446+mmagician@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: mmagician <8402446+mmagician@users.noreply.github.com>

---------

Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
afa7789 pushed a commit to afa7789/miden-base that referenced this pull request Mar 9, 2026
… `miden-base` (0xMiden#2359)

* chore: use the helper from vm

* Fix test failure and clippy warning in crypto_utils after adopting bytes_to_packed_u32_felts (0xMiden#2360)

* Initial plan

* Fix lint and test failures: pad felts and keep FieldElement import

Co-authored-by: mmagician <8402446+mmagician@users.noreply.github.com>

* Add constant for LEAF_DATA_FELTS to improve code maintainability

Co-authored-by: mmagician <8402446+mmagician@users.noreply.github.com>

* Apply rustfmt formatting to comment line length

Co-authored-by: mmagician <8402446+mmagician@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: mmagician <8402446+mmagician@users.noreply.github.com>

---------

Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants