diff --git a/pallets/erc20-xcm-bridge/src/lib.rs b/pallets/erc20-xcm-bridge/src/lib.rs index bb3810bbb4..79bf2efdfd 100644 --- a/pallets/erc20-xcm-bridge/src/lib.rs +++ b/pallets/erc20-xcm-bridge/src/lib.rs @@ -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!(