aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorGustav Simonsson <gustav.simonsson@gmail.com>2015-05-11 02:30:02 +0800
committerGustav Simonsson <gustav.simonsson@gmail.com>2015-05-12 23:22:17 +0800
commit2c1b0ff17e020f300ed9d5a5a244f59b4febfe66 (patch)
treecafa9b03743b00d4ef902ddf3effc1734e885a89 /tests
parentfe9e95a3fd6275fe2740261d3d110c13de4aa0ce (diff)
downloaddexon-2c1b0ff17e020f300ed9d5a5a244f59b4febfe66.tar.gz
dexon-2c1b0ff17e020f300ed9d5a5a244f59b4febfe66.tar.zst
dexon-2c1b0ff17e020f300ed9d5a5a244f59b4febfe66.zip
Update key store to new spec but keep address field for now
* Also fix address types post-rebase
Diffstat (limited to 'tests')
-rw-r--r--tests/block_test_util.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/block_test_util.go b/tests/block_test_util.go
index 093c9be0c..ae2ae4033 100644
--- a/tests/block_test_util.go
+++ b/tests/block_test_util.go
@@ -113,7 +113,7 @@ func (t *BlockTest) InsertPreState(ethereum *eth.Ethereum) (*state.StateDB, erro
if acct.PrivateKey != "" {
privkey, err := hex.DecodeString(strings.TrimPrefix(acct.PrivateKey, "0x"))
err = crypto.ImportBlockTestKey(privkey)
- err = ethereum.AccountManager().TimedUnlock(addr, "", 999999*time.Second)
+ err = ethereum.AccountManager().TimedUnlock(common.BytesToAddress(addr), "", 999999*time.Second)
if err != nil {
return nil, err
}