Skip to content

Commit 5961668

Browse files
committed
fix nonce to bytes
1 parent cb8754f commit 5961668

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pallets/subtensor/src/registration.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -546,7 +546,7 @@ impl<T: Config> Pallet<T> {
546546
}
547547

548548
pub fn create_seal_hash(block_number_u64: u64, nonce_u64: u64, hotkey: &T::AccountId) -> H256 {
549-
let nonce = nonce_u64.to_be_bytes();
549+
let nonce = U256::from(nonce_u64);
550550
let block_hash_at_number: H256 = Self::get_block_hash_from_u64(block_number_u64);
551551
let block_hash_bytes: &[u8; 32] = block_hash_at_number.as_fixed_bytes();
552552
let binding = Self::hash_block_and_hotkey(block_hash_bytes, hotkey);

0 commit comments

Comments
 (0)