Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
27
func
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
Wrap
Function · 0.92
Bytes
TypeAlias · 0.85
chargeCopy
Method · 0.80
push
Method · 0.45
Tested by
no test coverage detected