MCPcopy 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
195func (vm *VM) pushBool(b bool) {
196 var n Int
197 if b {
198 n = 1
199 }
200 vm.push(n)
201}
202
203func (vm *VM) pop() Item {
204 res, ok := vm.contract.stack.pop()

Callers 6

opNotFunction · 0.80
opAndFunction · 0.80
opOrFunction · 0.80
opCheckSigFunction · 0.80
opGTFunction · 0.80
opEqFunction · 0.80

Calls 1

pushMethod · 0.95

Tested by

no test coverage detected