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

Method PushdataUint64

protocol/txvm/txvmutil/builder.go:55–61  ·  view source on GitHub ↗

PushdataInt64 writes instructions to b pushing v onto the stack. It panics if v does not fit in a int64.

(v uint64)

Source from the content-addressed store, hash-verified

53// onto the stack.
54// It panics if v does not fit in a int64.
55func (b *Builder) PushdataUint64(v uint64) *Builder {
56 if v > math.MaxInt64 {
57 panic(fmt.Errorf("%d does not fit in int64", v))
58 }
59 b.PushdataInt64(int64(v))
60 return b
61}
62
63// Concat concatenates an already assemble txvm program
64// fragment onto the end of b.

Callers 2

materializeTxMethod · 0.95
issueFunction · 0.95

Calls 1

PushdataInt64Method · 0.95

Tested by

no test coverage detected