We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6662203 + 1b3fd75 commit 7a6d381Copy full SHA for 7a6d381
1 file changed
fat/fat2/transactionbatch.go
@@ -2,7 +2,9 @@ package fat2
2
3
import (
4
"encoding/json"
5
+ "errors"
6
"fmt"
7
+ "math"
8
9
"github.com/Factom-Asset-Tokens/factom"
10
"github.com/Factom-Asset-Tokens/factom/fat103"
@@ -109,6 +111,13 @@ func (t *TransactionBatch) Validate(height int32) error {
109
111
if err = t.ValidExtIDs(height); err != nil {
110
112
return err
113
}
114
+
115
+ for _, t := range t.Transactions {
116
+ if t.Input.Amount > math.MaxInt64 {
117
+ return errors.New("input value exceeded int64")
118
+ }
119
120
121
return nil
122
123
0 commit comments