Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/chain/txvm
/ pushBool
Method
pushBool
protocol/txvm/vm.go:195–201 ·
view source on GitHub ↗
(b bool)
Source
from the content-addressed store, hash-verified
193
}
194
195
func
(vm *VM) pushBool(b bool) {
196
var
n Int
197
if
b {
198
n = 1
199
}
200
vm.push(n)
201
}
202
203
func
(vm *VM) pop() Item {
204
res, ok := vm.contract.stack.pop()
Callers
6
opNot
Function · 0.80
opAnd
Function · 0.80
opOr
Function · 0.80
opCheckSig
Function · 0.80
opGT
Function · 0.80
opEq
Function · 0.80
Calls
1
push
Method · 0.95
Tested by
no test coverage detected