mirror of
https://github.com/arnaucube/hermez-node.git
synced 2026-02-06 19:06:42 +01:00
Merge pull request #615 from hermeznetwork/fix/l2txs-all-tonull
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