Function std::tx::tx_script_bytecode_hash
pub fn tx_script_bytecode_hash() -> Option<b256>
Expand description
Get the hash of the script bytecode.
Returns
- [Option] - The hash of the script bytecode.
Examples
use std::tx::tx_script_bytecode_hash;
fn foo() {
let script_bytecode_hash: b256 = tx_script_bytecode_hash().unwrap();
assert(script_bytecode_hash == 0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef);
}