good morning!!!!
Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
bor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Harbor Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
open
bor
Commits
9bfd0b60
Unverified
Commit
9bfd0b60
authored
Jan 2, 2019
by
Guillaume Ballet
Committed by
GitHub
Jan 2, 2019
Browse files
Options
Downloads
Patches
Plain Diff
accounts/abi: fix case of generated java functions (#18372)
parent
a4af7343
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
accounts/abi/bind/bind.go
+6
-4
6 additions, 4 deletions
accounts/abi/bind/bind.go
with
6 additions
and
4 deletions
accounts/abi/bind/bind.go
+
6
−
4
View file @
9bfd0b60
...
@@ -381,7 +381,7 @@ func namedTypeJava(javaKind string, solKind abi.Type) string {
...
@@ -381,7 +381,7 @@ func namedTypeJava(javaKind string, solKind abi.Type) string {
// methodNormalizer is a name transformer that modifies Solidity method names to
// methodNormalizer is a name transformer that modifies Solidity method names to
// conform to target language naming concentions.
// conform to target language naming concentions.
var
methodNormalizer
=
map
[
Lang
]
func
(
string
)
string
{
var
methodNormalizer
=
map
[
Lang
]
func
(
string
)
string
{
LangGo
:
capitali
se
,
LangGo
:
abi
.
ToCamelCa
se
,
LangJava
:
decapitalise
,
LangJava
:
decapitalise
,
}
}
...
@@ -392,10 +392,12 @@ func capitalise(input string) string {
...
@@ -392,10 +392,12 @@ func capitalise(input string) string {
// decapitalise makes a camel-case string which starts with a lower case character.
// decapitalise makes a camel-case string which starts with a lower case character.
func
decapitalise
(
input
string
)
string
{
func
decapitalise
(
input
string
)
string
{
// NOTE: This is the current behavior, it doesn't match the comment
if
len
(
input
)
==
0
{
// above and needs to be investigated.
return
input
return
abi
.
ToCamelCase
(
input
)
}
goForm
:=
abi
.
ToCamelCase
(
input
)
return
strings
.
ToLower
(
goForm
[
:
1
])
+
goForm
[
1
:
]
}
}
// structured checks whether a list of ABI data types has enough information to
// structured checks whether a list of ABI data types has enough information to
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment