diff options
author | Gustav Simonsson <gustav.simonsson@gmail.com> | 2015-04-03 03:14:25 +0800 |
---|---|---|
committer | Gustav Simonsson <gustav.simonsson@gmail.com> | 2015-05-12 23:19:39 +0800 |
commit | da9fe951da4005761a014316c46771d628dc058e (patch) | |
tree | d5344172ed915b4890d66c3cf3b4181e30589471 /cmd/geth/admin.go | |
parent | 6b23094cff77d7e485e0a2ae5698884f63c87ce7 (diff) | |
download | dexon-da9fe951da4005761a014316c46771d628dc058e.tar dexon-da9fe951da4005761a014316c46771d628dc058e.tar.gz dexon-da9fe951da4005761a014316c46771d628dc058e.tar.bz2 dexon-da9fe951da4005761a014316c46771d628dc058e.tar.lz dexon-da9fe951da4005761a014316c46771d628dc058e.tar.xz dexon-da9fe951da4005761a014316c46771d628dc058e.tar.zst dexon-da9fe951da4005761a014316c46771d628dc058e.zip |
Use common.Address type for accounts.Address
Diffstat (limited to 'cmd/geth/admin.go')
-rw-r--r-- | cmd/geth/admin.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/geth/admin.go b/cmd/geth/admin.go index b0cb7507a..949a7bde0 100644 --- a/cmd/geth/admin.go +++ b/cmd/geth/admin.go @@ -391,7 +391,7 @@ func (js *jsre) unlock(call otto.FunctionCall) otto.Value { } } am := js.ethereum.AccountManager() - err = am.TimedUnlock(common.FromHex(addr), passphrase, time.Duration(seconds)*time.Second) + err = am.TimedUnlock(common.HexToAddress(addr), passphrase, time.Duration(seconds)*time.Second) if err != nil { fmt.Printf("Unlock account failed '%v'\n", err) return otto.FalseValue() @@ -433,7 +433,7 @@ func (js *jsre) newAccount(call otto.FunctionCall) otto.Value { fmt.Printf("Could not create the account: %v", err) return otto.UndefinedValue() } - return js.re.ToVal(common.ToHex(acct.Address)) + return js.re.ToVal(acct.Address.Hex()) } func (js *jsre) nodeInfo(call otto.FunctionCall) otto.Value { |