diff options
author | Aaron Buchwald <[email protected]> | 2020-09-23 02:03:43 -0400 |
---|---|---|
committer | Aaron Buchwald <[email protected]> | 2020-09-23 02:03:43 -0400 |
commit | febbf65d34101980d159a1f47b65848183082db8 (patch) | |
tree | 8988aee967d72035eab570b69cb1fead9dc9f711 /plugin/evm/import_tx.go | |
parent | 6cc9d3c61ee803f37cbc6e65799797c0dc51e9e5 (diff) |
Improve error messages
Diffstat (limited to 'plugin/evm/import_tx.go')
-rw-r--r-- | plugin/evm/import_tx.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/plugin/evm/import_tx.go b/plugin/evm/import_tx.go index 4d7f219..2b8882f 100644 --- a/plugin/evm/import_tx.go +++ b/plugin/evm/import_tx.go @@ -64,6 +64,8 @@ func (tx *UnsignedImportTx) Verify( return errWrongChainID case len(tx.ImportedInputs) == 0: return errNoImportInputs + case len(tx.Outs) == 0: + return errNoImportOutputs case tx.NetworkID != ctx.NetworkID: return errWrongNetworkID case !ctx.ChainID.Equals(tx.BlockchainID): |