Add usefull methods for reorg

This commit is contained in:
Arnau B
2020-08-21 16:59:30 +02:00
parent 1cbf54acc7
commit c108739c24
7 changed files with 28 additions and 12 deletions

View File

@@ -15,8 +15,7 @@ type L2Tx struct {
Amount *big.Int `meddler:"amount,bigint"`
Fee FeeSelector `meddler:"fee"`
Nonce Nonce `meddler:"nonce"`
// Extra metadata, may be uninitialized
Type TxType `meddler:"-"` // optional, descrives which kind of tx it's
Type TxType `meddler:"tx_type"`
}
func (tx *L2Tx) Tx() *Tx {