diff --git a/accounts/abi/type.go b/accounts/abi/type.go index 86bd91bd46..4792283ee8 100644 --- a/accounts/abi/type.go +++ b/accounts/abi/type.go @@ -213,7 +213,7 @@ func NewType(t string, internalType string, components []ArgumentMarshaling) (ty if internalType != "" && strings.HasPrefix(internalType, structPrefix) { // Foo.Bar type definition is not allowed in golang, // convert the format to FooBar - typ.TupleRawName = strings.ReplaceAll(internalType[len(structPrefix):], ".", "") + typ.TupleRawName = strings.Replace(internalType[len(structPrefix):], ".", "", -1) } case "function":