github.com/okex/exchain@v1.8.0/libs/tendermint/types/wrap_cmtx.go (about)

     1  package types
     2  
     3  type WrapCMTx struct {
     4  	Tx    Tx     `json:"tx" yaml:"tx"`
     5  	Nonce uint64 `json:"nonce" yaml:"nonce"`
     6  }
     7  
     8  func (wtx *WrapCMTx) GetTx() Tx {
     9  	if wtx != nil {
    10  		return wtx.Tx
    11  	}
    12  	return nil
    13  }
    14  
    15  func (wtx *WrapCMTx) GetNonce() uint64 {
    16  	if wtx != nil {
    17  		return wtx.Nonce
    18  	}
    19  	return 0
    20  }