Function std::tx::tx_script_data
pub fn tx_script_data<T>() -> T
Expand description
Get the script data, typed.
Additional Information
Unsafe.
Assumes the type is correct.
Returns
- [T] - The script data, typed.
Reverts
- When the transaction type is of type
Transaction::Create
.
Examples
use std::tx::tx_script_data;
fn foo() {
let script_data: u64 = tx_script_data();
log(script_data);
}