aboutsummaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorFelix Lange <fjl@twurst.com>2016-04-05 07:08:50 +0800
committerFelix Lange <fjl@twurst.com>2016-04-12 21:59:18 +0800
commit46df50be181afca503aff4a545e3f322ad04448b (patch)
treec969c79d6512bf1af4206c057497c23664bd131e /common
parent91aaddaeb38ff25118896fb436a938d14636760b (diff)
downloadgo-tangerine-46df50be181afca503aff4a545e3f322ad04448b.tar
go-tangerine-46df50be181afca503aff4a545e3f322ad04448b.tar.gz
go-tangerine-46df50be181afca503aff4a545e3f322ad04448b.tar.bz2
go-tangerine-46df50be181afca503aff4a545e3f322ad04448b.tar.lz
go-tangerine-46df50be181afca503aff4a545e3f322ad04448b.tar.xz
go-tangerine-46df50be181afca503aff4a545e3f322ad04448b.tar.zst
go-tangerine-46df50be181afca503aff4a545e3f322ad04448b.zip
accounts: improve API and add documentation
- Sign takes common.Address, not Account - Import/Export methods work with encrypted JSON keys
Diffstat (limited to 'common')
-rw-r--r--common/registrar/ethreg/api.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/common/registrar/ethreg/api.go b/common/registrar/ethreg/api.go
index 4bffe69c5..6d77a9385 100644
--- a/common/registrar/ethreg/api.go
+++ b/common/registrar/ethreg/api.go
@@ -254,8 +254,7 @@ func (be *registryAPIBackend) Transact(fromStr, toStr, nonceStr, valueStr, gasSt
tx = types.NewTransaction(nonce, to, value, gas, price, data)
}
- acc := accounts.Account{Address: from}
- signature, err := be.am.Sign(acc, tx.SigHash().Bytes())
+ signature, err := be.am.Sign(from, tx.SigHash().Bytes())
if err != nil {
return "", err
}