Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/chain/txvm
/ popBool
Method
popBool
protocol/txvm/vm.go:219–225 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
217
}
218
219
func
(vm *VM) popBool() bool {
220
v := vm.popData()
221
if
n, ok := v.(Int); ok {
222
return
n != 0
223
}
224
return
true
225
}
226
227
func
(vm *VM) popBytes() Bytes {
228
v, ok := vm.pop().(Bytes)
Callers
5
opNot
Function · 0.80
opAnd
Function · 0.80
opOr
Function · 0.80
opVerify
Function · 0.80
opJumpIf
Function · 0.80
Calls
1
popData
Method · 0.95
Tested by
no test coverage detected