Skip to content

Commit

Permalink
Merge pull request #3299 from nspcc-dev/autogeneration-linter
Browse files Browse the repository at this point in the history
smartcontract: fix generation of nns wrapper for follow Go naming
  • Loading branch information
AnnaShaleva committed Jan 26, 2024
2 parents a19f85b + 9b7eff1 commit 36b8921
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 17 deletions.
4 changes: 2 additions & 2 deletions cli/smartcontract/generate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,8 @@ func Sum(first int, second int) int {
return neogointernal.CallWithToken(Hash, "sum", int(contract.All), first, second).(int)
}
// Sum_3 invokes ` + "`sum`" + ` method of contract.
func Sum_3(first int, second int, third int) int {
// Sum2 invokes ` + "`sum`" + ` method of contract.
func Sum2(first int, second int, third int) int {
return neogointernal.CallWithToken(Hash, "sum", int(contract.All), first, second, third).(int)
}
Expand Down
12 changes: 6 additions & 6 deletions cli/smartcontract/testdata/nameservice/nns.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 4 additions & 9 deletions pkg/smartcontract/binding/generate.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 36b8921

Please sign in to comment.