Find a zero value on the stack, move it to the top
(b *txvmutil.Builder, stack []stackItem)
| 733 | |
| 734 | // Find a zero value on the stack, move it to the top |
| 735 | func zerovalToTop(b *txvmutil.Builder, stack []stackItem) []stackItem { |
| 736 | return findAndRoll(b, stack, func(_ int, item stackItem) bool { |
| 737 | return len(item.anchor) != 0 && item.amount == 0 |
| 738 | }) |
| 739 | } |
| 740 | |
| 741 | func valueToTop(b *txvmutil.Builder, stack []stackItem, amount int64, assetID bc.Hash) ([]stackItem, error) { |
| 742 | if len(stack) == 0 { |
no test coverage detected