summaryrefslogtreecommitdiff
path: root/data/abi/abi_type.go
diff options
context:
space:
mode:
Diffstat (limited to 'data/abi/abi_type.go')
-rw-r--r--data/abi/abi_type.go16
1 files changed, 9 insertions, 7 deletions
diff --git a/data/abi/abi_type.go b/data/abi/abi_type.go
index 0ff240950..f403916b2 100644
--- a/data/abi/abi_type.go
+++ b/data/abi/abi_type.go
@@ -60,6 +60,15 @@ const (
Tuple
)
+const (
+ addressByteSize = 32
+ checksumByteSize = 4
+ singleByteSize = 1
+ singleBoolSize = 1
+ lengthEncodeByteSize = 2
+ abiEncodingLengthLimit = 1 << 16
+)
+
// Type is the struct that stores information about an ABI value's type.
type Type struct {
abiTypeID BaseType
@@ -405,13 +414,6 @@ func findBoolLR(typeList []Type, index int, delta int) int {
return until
}
-const (
- addressByteSize = 32
- singleByteSize = 1
- singleBoolSize = 1
- lengthEncodeByteSize = 2
-)
-
// ByteLen method calculates the byte length of a static ABI type.
func (t Type) ByteLen() (int, error) {
switch t.abiTypeID {