aboutsummaryrefslogtreecommitdiffstats
path: root/rpc/api.go
diff options
context:
space:
mode:
Diffstat (limited to 'rpc/api.go')
-rw-r--r--rpc/api.go17
1 files changed, 2 insertions, 15 deletions
diff --git a/rpc/api.go b/rpc/api.go
index ddba422f8..617e4998d 100644
--- a/rpc/api.go
+++ b/rpc/api.go
@@ -2,7 +2,6 @@ package rpc
import (
"encoding/json"
- "fmt"
"math/big"
"strings"
"sync"
@@ -16,7 +15,6 @@ import (
"github.com/ethereum/go-ethereum/event"
"github.com/ethereum/go-ethereum/event/filter"
"github.com/ethereum/go-ethereum/state"
- "github.com/ethereum/go-ethereum/ui"
"github.com/ethereum/go-ethereum/xeth"
)
@@ -76,7 +74,7 @@ func NewEthereumApi(eth *xeth.XEth) *EthereumApi {
// block = chain.GetBlockByNumber(uint64(num))
// if block != nil {
-// self.useState(state.New(block.Root(), self.xeth().Backend().Db()))
+// self.useState(state.New(block.Root(), self.xeth().Backend().StateDb()))
// } else {
// self.useState(chain.State())
// }
@@ -649,17 +647,6 @@ func (self *EthereumApi) useState(statedb *state.StateDB) {
self.eth = self.eth.UseState(statedb)
}
-func t(f ui.Frontend) {
- // Call the password dialog
- ret, err := f.Call("PasswordDialog")
- if err != nil {
- fmt.Println(err)
- }
- // Get the first argument
- t, _ := ret.Get(0)
- fmt.Println("return:", t)
-}
-
func toFilterOptions(options *FilterOptions) core.FilterOptions {
var opts core.FilterOptions
@@ -678,7 +665,7 @@ func toFilterOptions(options *FilterOptions) core.FilterOptions {
opts.Earliest = options.Earliest
opts.Latest = options.Latest
- opts.Topics = make([][]byte, len(options.Topic))
+ opts.Topics = make([][][]byte, len(options.Topic))
for i, topic := range options.Topic {
opts.Topics[i] = fromHex(topic)
}