PushdataInt64 writes instructions to b pushing v onto the stack. It panics if v does not fit in a int64.
(v uint64)
| 53 | // onto the stack. |
| 54 | // It panics if v does not fit in a int64. |
| 55 | func (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. |
no test coverage detected