upgrade web3.js with _extend support

This commit is contained in:
Bas van Kervel
2015-06-10 09:42:14 +02:00
committed by Bas van Kervel
parent 1fe617fa57
commit 7584e68c21
7 changed files with 51 additions and 6 deletions

View File

@ -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
}