Skip to content

Commit

Permalink
fix: 🐛 fix more U256 conversions
Browse files Browse the repository at this point in the history
  • Loading branch information
manuelmauro committed Mar 6, 2025
1 parent afb5d89 commit 90db051
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pallets/erc20-xcm-bridge/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,7 @@ pub mod pallet {
);

// return value is true.
let mut bytes = [0u8; 32];
U256::from(1).to_big_endian(&mut bytes);
let bytes: [u8; 32] = U256::from(1).to_big_endian();

// Check return value to make sure not calling on empty contracts.
ensure!(
Expand Down

0 comments on commit 90db051

Please sign in to comment.