diff options
author | Determinant <[email protected]> | 2020-08-13 21:30:56 -0400 |
---|---|---|
committer | Determinant <[email protected]> | 2020-08-13 21:30:56 -0400 |
commit | b989b5f949424f72b125cbec460824b94b7c55ab (patch) | |
tree | 3936806e12ca48d60dbf5980bb4ceeae3d7d0e5f /plugin/evm/base_tx.go | |
parent | 88cc3698b3663972cd9b60faf5c14a7e1bbee965 (diff) |
...
Diffstat (limited to 'plugin/evm/base_tx.go')
-rw-r--r-- | plugin/evm/base_tx.go | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/plugin/evm/base_tx.go b/plugin/evm/base_tx.go index 5ffc58e..7fd5a31 100644 --- a/plugin/evm/base_tx.go +++ b/plugin/evm/base_tx.go @@ -27,6 +27,10 @@ type EVMOutput struct { Amount uint64 `serialize:"true" json:"amount"` } +func (out *EVMOutput) Verify() error { + return nil +} + // BaseTx contains fields common to many transaction types. It should be // embedded in transaction implementations. The serialized fields of this struct // should be exactly the same as those of avm.BaseTx. Do not change this @@ -84,11 +88,11 @@ func (tx *BaseTx) Verify() error { return fmt.Errorf("memo length, %d, exceeds maximum memo length, %d", len(tx.Memo), maxMemoSize) } - //for _, out := range tx.Outs { - // if err := out.Verify(); err != nil { - // return err - // } - //} + for _, out := range tx.Outs { + if err := out.Verify(); err != nil { + return err + } + } for _, in := range tx.Ins { if err := in.Verify(); err != nil { return err |