upgrade web3.js with _extend support
This commit is contained in:
committed by
Bas van Kervel
parent
1fe617fa57
commit
7584e68c21
@ -9,6 +9,10 @@ import (
|
||||
"github.com/ethereum/go-ethereum/xeth"
|
||||
)
|
||||
|
||||
const (
|
||||
ShhApiVersion = "1.0"
|
||||
)
|
||||
|
||||
var (
|
||||
// mapping between methods and handlers
|
||||
shhMapping = map[string]shhhandler{
|
||||
@ -71,6 +75,10 @@ func (self *shhApi) Name() string {
|
||||
return ShhApiName
|
||||
}
|
||||
|
||||
func (self *shhApi) ApiVersion() string {
|
||||
return ShhApiVersion
|
||||
}
|
||||
|
||||
func (self *shhApi) Version(req *shared.Request) (interface{}, error) {
|
||||
w := self.xeth.Whisper()
|
||||
if w == nil {
|
||||
|
Reference in New Issue
Block a user