upgrade web3.js with _extend support
This commit is contained in:
committed by
Bas van Kervel
parent
1fe617fa57
commit
7584e68c21
@ -10,6 +10,10 @@ import (
|
||||
"github.com/ethereum/go-ethereum/xeth"
|
||||
)
|
||||
|
||||
const (
|
||||
PersonalApiVersion = "1.0"
|
||||
)
|
||||
|
||||
var (
|
||||
// mapping between methods and handlers
|
||||
personalMapping = map[string]personalhandler{
|
||||
@ -65,6 +69,10 @@ func (self *personalApi) Name() string {
|
||||
return PersonalApiName
|
||||
}
|
||||
|
||||
func (self *personalApi) ApiVersion() string {
|
||||
return PersonalApiVersion
|
||||
}
|
||||
|
||||
func (self *personalApi) ListAccounts(req *shared.Request) (interface{}, error) {
|
||||
return self.xeth.Accounts(), nil
|
||||
}
|
||||
|
Reference in New Issue
Block a user