MCPcopy 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
219func (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
227func (vm *VM) popBytes() Bytes {
228 v, ok := vm.pop().(Bytes)

Callers 5

opNotFunction · 0.80
opAndFunction · 0.80
opOrFunction · 0.80
opVerifyFunction · 0.80
opJumpIfFunction · 0.80

Calls 1

popDataMethod · 0.95

Tested by

no test coverage detected