From c1677069ba474dabf17152b599dd328e1ff876e3 Mon Sep 17 00:00:00 2001 From: rjl493456442 Date: Thu, 31 Oct 2019 11:29:07 +0800 Subject: [PATCH] accounts/abi: replace strings.ReplaceAll with strings.Replace --- accounts/abi/type.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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":