Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Geth-Modification
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张蕾
Geth-Modification
Commits
0743d68d
Commit
0743d68d
authored
Mar 08, 2015
by
zelig
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rename constructor New
parent
97dc4edb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
natspec.go
ethutil/natspec/natspec.go
+1
-1
natspec_test.go
ethutil/natspec/natspec_test.go
+2
-1
No files found.
ethutil/natspec/natspec.go
View file @
0743d68d
...
...
@@ -10,7 +10,7 @@ type NatSpec struct {
}
// TODO: should initialise with abi and userdoc jsons
func
New
NATSpec
()
(
self
*
NatSpec
,
err
error
)
{
func
New
()
(
self
*
NatSpec
,
err
error
)
{
self
=
new
(
NatSpec
)
self
.
jsvm
=
otto
.
New
()
...
...
ethutil/natspec/natspec_test.go
View file @
0743d68d
...
...
@@ -38,7 +38,7 @@ func TestNotice(t *testing.T) {
method
:=
"multiply"
ns
,
err
:=
New
NATSpec
()
ns
,
err
:=
New
()
if
err
!=
nil
{
t
.
Errorf
(
"NewNATSpec error %v"
,
err
)
}
...
...
@@ -68,6 +68,7 @@ func TestNotice(t *testing.T) {
}
}
// https://github.com/ethereum/natspec.js/issues/1
// badDesc := "Will multiply `e` by 7 and return `a * 7`."
// notice, err = ns.Notice(tx, abi, method, badDesc)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment