aboutsummaryrefslogtreecommitdiff
path: root/plugin/evm/base_tx.go
diff options
context:
space:
mode:
Diffstat (limited to 'plugin/evm/base_tx.go')
-rw-r--r--plugin/evm/base_tx.go14
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