mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-02-26 15:47:21 +00:00
fix: correct regex group index in ABI type size parsing
This commit is contained in:
parent
5e6f7374de
commit
01d8e2d966
1 changed files with 1 additions and 1 deletions
|
|
@ -126,7 +126,7 @@ func NewType(t string, internalType string, components []ArgumentMarshaling) (ty
|
|||
var varSize int
|
||||
if len(parsedType[3]) > 0 {
|
||||
var err error
|
||||
varSize, err = strconv.Atoi(parsedType[2])
|
||||
varSize, err = strconv.Atoi(parsedType[3])
|
||||
if err != nil {
|
||||
return Type{}, fmt.Errorf("abi: error parsing variable size: %v", err)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue