Skip to content

Commit 01d8e2d

Browse files
authored
fix: correct regex group index in ABI type size parsing
1 parent 5e6f737 commit 01d8e2d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

accounts/abi/type.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ func NewType(t string, internalType string, components []ArgumentMarshaling) (ty
126126
var varSize int
127127
if len(parsedType[3]) > 0 {
128128
var err error
129-
varSize, err = strconv.Atoi(parsedType[2])
129+
varSize, err = strconv.Atoi(parsedType[3])
130130
if err != nil {
131131
return Type{}, fmt.Errorf("abi: error parsing variable size: %v", err)
132132
}

0 commit comments

Comments
 (0)