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

Function opInput

protocol/txvm/contract.go:76–89  ·  view source on GitHub ↗
(vm *VM)

Source from the content-addressed store, hash-verified

74}
75
76func opInput(vm *VM) {
77 t := vm.popTuple()
78 _, snapshotID := contractSnapshot(t)
79
80 con := new(contract)
81 err := con.uninspect(t)
82 if err != nil {
83 panic(err)
84 }
85 vm.chargeCreate(con)
86 vm.push(con)
87
88 vm.logInput(snapshotID)
89}
90
91func opYield(vm *VM) {
92 prog := vm.popBytes()

Callers

nothing calls this directly

Calls 6

contractSnapshotFunction · 0.85
popTupleMethod · 0.80
chargeCreateMethod · 0.80
logInputMethod · 0.80
uninspectMethod · 0.65
pushMethod · 0.45

Tested by

no test coverage detected