aboutsummaryrefslogtreecommitdiffstats
path: root/tests/block_test.go
diff options
context:
space:
mode:
authorGustav Simonsson <gustav.simonsson@gmail.com>2015-04-28 01:32:45 +0800
committerGustav Simonsson <gustav.simonsson@gmail.com>2015-04-28 02:30:26 +0800
commit34c94d5fcdf31d4b4603e945b4b3e119fdd25f46 (patch)
tree77d50d5bc7a6bbeb4e3dca0c5c05a5cd4d11b6e4 /tests/block_test.go
parent2a61611c4fe2db9ef4466e11712c9ffd73636c15 (diff)
downloaddexon-34c94d5fcdf31d4b4603e945b4b3e119fdd25f46.tar.gz
dexon-34c94d5fcdf31d4b4603e945b4b3e119fdd25f46.tar.zst
dexon-34c94d5fcdf31d4b4603e945b4b3e119fdd25f46.zip
Add loading of block test privkey if present
Diffstat (limited to 'tests/block_test.go')
-rw-r--r--tests/block_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/block_test.go b/tests/block_test.go
index 9343a3de9..a46751f00 100644
--- a/tests/block_test.go
+++ b/tests/block_test.go
@@ -87,7 +87,7 @@ func runBlockTest(name string, test *BlockTest, t *testing.T) {
ethereum.ResetWithGenesisBlock(test.Genesis)
// import pre accounts
- statedb, err := test.InsertPreState(ethereum.StateDb())
+ statedb, err := test.InsertPreState(ethereum)
if err != nil {
t.Fatalf("InsertPreState: %v", err)
}