diff options
author | Felix Lange <fjl@twurst.com> | 2015-03-08 07:18:13 +0800 |
---|---|---|
committer | Felix Lange <fjl@twurst.com> | 2015-03-08 07:18:13 +0800 |
commit | fda7b4c79d070f1cb4f5d7ef5b4d077d9dcf2774 (patch) | |
tree | a553908665c48fca0263f4c8c1b3ef8d3ed7e071 /xeth | |
parent | a2810c06d7cfc64e1636fe4ecfd5e35cc52b0d2b (diff) | |
download | go-tangerine-fda7b4c79d070f1cb4f5d7ef5b4d077d9dcf2774.tar go-tangerine-fda7b4c79d070f1cb4f5d7ef5b4d077d9dcf2774.tar.gz go-tangerine-fda7b4c79d070f1cb4f5d7ef5b4d077d9dcf2774.tar.bz2 go-tangerine-fda7b4c79d070f1cb4f5d7ef5b4d077d9dcf2774.tar.lz go-tangerine-fda7b4c79d070f1cb4f5d7ef5b4d077d9dcf2774.tar.xz go-tangerine-fda7b4c79d070f1cb4f5d7ef5b4d077d9dcf2774.tar.zst go-tangerine-fda7b4c79d070f1cb4f5d7ef5b4d077d9dcf2774.zip |
accounts: use pointers consistently
Account is now always a non-pointer. This will be important once
the manager starts remembering accounts.
AccountManager is now always a pointer because it contains locks
and locks cannot be copied.
Diffstat (limited to 'xeth')
-rw-r--r-- | xeth/xeth.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xeth/xeth.go b/xeth/xeth.go index 1ad62a7bf..187aa8c0f 100644 --- a/xeth/xeth.go +++ b/xeth/xeth.go @@ -311,7 +311,7 @@ func (self *XEth) Transact(fromStr, toStr, valueStr, gasStr, gasPriceStr, codeSt nonce := state.GetNonce(from) tx.SetNonce(nonce) - sig, err := self.accountManager.Sign(&accounts.Account{Address: from}, tx.Hash()) + sig, err := self.accountManager.Sign(accounts.Account{Address: from}, tx.Hash()) if err != nil { return "", err } |