accounts/abi: replace strings.ReplaceAll with strings.Replace

This commit is contained in:
rjl493456442 2019-10-31 11:29:07 +08:00
parent 490ccb8bb1
commit c1677069ba

View file

@ -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":