rename constructor New

This commit is contained in:
zelig
2015-03-08 20:17:20 +07:00
parent 97dc4edb45
commit 0743d68d4c
2 changed files with 3 additions and 2 deletions

View File

@@ -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()