mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
accounts/abi: replace strings.ReplaceAll with strings.Replace
This commit is contained in:
parent
490ccb8bb1
commit
c1677069ba
1 changed files with 1 additions and 1 deletions
|
|
@ -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":
|
||||
|
|
|
|||
Loading…
Reference in a new issue