pub fn h256_to_u256(item: H256) -> U256
Expand description
Converts an H256
hash into a U256
value.
ยงExamples
use primitive_types::{H256, U256};
use neo3::neo_types::h256_to_u256;
let h256 = H256::repeat_byte(0x01);
let u256 = h256_to_u256(h256);
assert_eq!(u256, U256::from_big_endian(&[0x01; 32]));