MCPcopy Create free account
hub / github.com/chain/txvm / opTxID

Function opTxID

protocol/txvm/tx.go:27–33  ·  view source on GitHub ↗
(vm *VM)

Source from the content-addressed store, hash-verified

25}
26
27func opTxID(vm *VM) {
28 if !vm.Finalized {
29 panic(errors.Wrap(ErrUnfinalized, "txid"))
30 }
31 vm.chargeCopy(Bytes(vm.TxID[:]))
32 vm.push(Bytes(vm.TxID[:]))
33}

Callers

nothing calls this directly

Calls 4

WrapFunction · 0.92
BytesTypeAlias · 0.85
chargeCopyMethod · 0.80
pushMethod · 0.45

Tested by

no test coverage detected