Skip to content

fix(precompiles): allow closure-call pattern in mock_account! and fix out-of-bounds slice#18

Open
xxcode2 wants to merge 2 commits intoUomi-network:mainfrom
xxcode2:fix/precompiles-mock-account-lints
Open

fix(precompiles): allow closure-call pattern in mock_account! and fix out-of-bounds slice#18
xxcode2 wants to merge 2 commits intoUomi-network:mainfrom
xxcode2:fix/precompiles-mock-account-lints

Conversation

@xxcode2
Copy link

@xxcode2 xxcode2 commented Aug 25, 2025

  • Add #[allow(clippy::redundant_closure_call)] in mock_account! From impl
  • Fix out-of-bounds slice when constructing H160 from (u32, u128)
  • No behavior change; improves lint hygiene and prevents panic risk in tests

How to verify:
cargo clippy -p precompile-utils -- -D warnings
cargo test -p precompile-utils

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.

1 participant