good morning!!!!

Skip to content
Snippets Groups Projects
Commit 0743d68d authored by Viktor Trón's avatar Viktor Trón
Browse files

rename constructor New

parent 97dc4edb
No related branches found
No related tags found
No related merge requests found
...@@ -10,7 +10,7 @@ type NatSpec struct { ...@@ -10,7 +10,7 @@ type NatSpec struct {
} }
// TODO: should initialise with abi and userdoc jsons // TODO: should initialise with abi and userdoc jsons
func NewNATSpec() (self *NatSpec, err error) { func New() (self *NatSpec, err error) {
self = new(NatSpec) self = new(NatSpec)
self.jsvm = otto.New() self.jsvm = otto.New()
......
...@@ -38,7 +38,7 @@ func TestNotice(t *testing.T) { ...@@ -38,7 +38,7 @@ func TestNotice(t *testing.T) {
method := "multiply" method := "multiply"
ns, err := NewNATSpec() ns, err := New()
if err != nil { if err != nil {
t.Errorf("NewNATSpec error %v", err) t.Errorf("NewNATSpec error %v", err)
} }
...@@ -68,6 +68,7 @@ func TestNotice(t *testing.T) { ...@@ -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`." // badDesc := "Will multiply `e` by 7 and return `a * 7`."
// notice, err = ns.Notice(tx, abi, method, badDesc) // notice, err = ns.Notice(tx, abi, method, badDesc)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment