github.com/hyperledger/burrow@v0.34.5-0.20220512172541-77f09336001d/txs/payload/batch_tx.go (about)

     1  package payload
     2  
     3  import (
     4  	"fmt"
     5  )
     6  
     7  func (tx *BatchTx) Type() Type {
     8  	return TypeBatch
     9  }
    10  
    11  func (tx *BatchTx) GetInputs() []*TxInput {
    12  	return tx.Inputs
    13  }
    14  
    15  func (tx *BatchTx) String() string {
    16  	return fmt.Sprintf("BatchTx{%v}", tx.Txs)
    17  }
    18  
    19  func (tx *BatchTx) Any() *Any {
    20  	return &Any{
    21  		BatchTx: tx,
    22  	}
    23  }