Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/chain/txvm
/ opContract
Function
opContract
protocol/txvm/contract.go:32–36 ·
view source on GitHub ↗
(vm *VM)
Source
from the content-addressed store, hash-verified
30
}
31
32
func
opContract(vm *VM) {
33
prog := vm.popBytes()
34
con := vm.createContract(prog)
35
vm.push(con)
36
}
37
38
func
opCall(vm *VM) {
39
item := vm.pop()
Callers
nothing calls this directly
Calls
3
popBytes
Method · 0.80
createContract
Method · 0.80
push
Method · 0.45
Tested by
no test coverage detected