aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/geth/js_test.go
diff options
context:
space:
mode:
authorzelig <viktor.tron@gmail.com>2015-07-27 16:50:29 +0800
committerzelig <viktor.tron@gmail.com>2015-07-27 16:50:29 +0800
commit1356daad276b849a192c84834d78a6cf32d739eb (patch)
treeccb95f6de7633c83016a90a6e87873f00d2b5b56 /cmd/geth/js_test.go
parentd18d256442e2dc3413ebd9f571e1a5f6be366c09 (diff)
downloaddexon-1356daad276b849a192c84834d78a6cf32d739eb.tar
dexon-1356daad276b849a192c84834d78a6cf32d739eb.tar.gz
dexon-1356daad276b849a192c84834d78a6cf32d739eb.tar.bz2
dexon-1356daad276b849a192c84834d78a6cf32d739eb.tar.lz
dexon-1356daad276b849a192c84834d78a6cf32d739eb.tar.xz
dexon-1356daad276b849a192c84834d78a6cf32d739eb.tar.zst
dexon-1356daad276b849a192c84834d78a6cf32d739eb.zip
etherbase defaults to first account even if created during the session
Diffstat (limited to 'cmd/geth/js_test.go')
-rw-r--r--cmd/geth/js_test.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/cmd/geth/js_test.go b/cmd/geth/js_test.go
index aebf2d552..67c36dfe7 100644
--- a/cmd/geth/js_test.go
+++ b/cmd/geth/js_test.go
@@ -159,7 +159,7 @@ func TestAccounts(t *testing.T) {
defer os.RemoveAll(tmp)
checkEvalJSON(t, repl, `eth.accounts`, `["`+testAddress+`"]`)
- checkEvalJSON(t, repl, `eth.coinbase`, `null`)
+ checkEvalJSON(t, repl, `eth.coinbase`, `"`+testAddress+`"`)
val, err := repl.re.Run(`personal.newAccount("password")`)
if err != nil {
t.Errorf("expected no error, got %v", err)
@@ -170,6 +170,7 @@ func TestAccounts(t *testing.T) {
}
checkEvalJSON(t, repl, `eth.accounts`, `["`+testAddress+`","`+addr+`"]`)
+
}
func TestBlockChain(t *testing.T) {