mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-24 20:47:16 +00:00
rename constructor New
This commit is contained in:
parent
97dc4edb45
commit
0743d68d4c
@ -10,7 +10,7 @@ type NatSpec struct {
|
||||
}
|
||||
|
||||
// TODO: should initialise with abi and userdoc jsons
|
||||
func NewNATSpec() (self *NatSpec, err error) {
|
||||
func New() (self *NatSpec, err error) {
|
||||
|
||||
self = new(NatSpec)
|
||||
self.jsvm = otto.New()
|
||||
|
@ -38,7 +38,7 @@ func TestNotice(t *testing.T) {
|
||||
|
||||
method := "multiply"
|
||||
|
||||
ns, err := NewNATSpec()
|
||||
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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user