resolver tests
- add resolver tests and fix resolver to pass - statereg constructor fixed - comments added to natspec plus docserver integration for natspec userdoc fetching
This commit is contained in:
@ -104,6 +104,7 @@ func NewWithDocs(abiDocJson, userDocJson []byte, tx string) (self *NatSpec, err
|
||||
data: data,
|
||||
}
|
||||
|
||||
// load and require natspec js (but it is meant to be protected environment)
|
||||
_, err = self.jsvm.Run(natspecJS)
|
||||
if err != nil {
|
||||
return
|
||||
@ -132,6 +133,7 @@ func NewWithDocs(abiDocJson, userDocJson []byte, tx string) (self *NatSpec, err
|
||||
// Type string `json:type`
|
||||
// }
|
||||
|
||||
// json skeleton for abi doc (contract method definitions)
|
||||
type method struct {
|
||||
Notice string `json:notice`
|
||||
name string
|
||||
|
@ -9,9 +9,9 @@ type StateReg struct {
|
||||
caURL, caNatSpec string //contract addresses
|
||||
}
|
||||
|
||||
func NewStateReg(_xeth *xeth.XEth) (self *StateReg) {
|
||||
|
||||
self.xeth = _xeth
|
||||
func NewStateReg(xeth *xeth.XEth) (self *StateReg) {
|
||||
self = &StateReg{}
|
||||
self.xeth = xeth
|
||||
self.testCreateContracts()
|
||||
return
|
||||
|
||||
|
Reference in New Issue
Block a user