mirror of
https://github.com/arnaucube/hermez-node.git
synced 2026-02-07 03:16:45 +01:00
API doesnt accept pool txs without to
This commit is contained in:
@@ -101,6 +101,8 @@ func (tx *PoolL2Tx) SetType() error {
|
||||
tx.Type = TxTypeTransferToBJJ
|
||||
} else if tx.ToEthAddr != FFAddr && tx.ToEthAddr != EmptyAddr {
|
||||
tx.Type = TxTypeTransferToEthAddr
|
||||
} else {
|
||||
return tracerr.Wrap(errors.New("malformed transaction"))
|
||||
}
|
||||
} else {
|
||||
return tracerr.Wrap(errors.New("malformed transaction"))
|
||||
|
||||
Reference in New Issue
Block a user