Either Transaction::Script
or Transaction::Create
.
use std::tx::tx_type;
fn foo() {
let tx_type = tx_type();
match tx_type {
Transaction::Script => {
log("Regular script transaction");
},
Transaction::Create => {
log("Contract deployment transaction");
},
}
}