aboutsummaryrefslogtreecommitdiffstats
path: root/rpc
diff options
context:
space:
mode:
authorFelix Lange <fjl@twurst.com>2015-03-10 01:04:40 +0800
committerFelix Lange <fjl@twurst.com>2015-03-10 06:08:46 +0800
commitb4fa94c4b1459e71d4f11a3178cf56edf2b4aed3 (patch)
treecfc4b47a97d854f388fd935b836089051be01246 /rpc
parent2ee88a220ac22a814def1d568f80d7f29ede7095 (diff)
downloadgo-tangerine-b4fa94c4b1459e71d4f11a3178cf56edf2b4aed3.tar.gz
go-tangerine-b4fa94c4b1459e71d4f11a3178cf56edf2b4aed3.tar.zst
go-tangerine-b4fa94c4b1459e71d4f11a3178cf56edf2b4aed3.zip
xeth: don't sign transactions for tx call
This should make calls faster and removes interaction with account manager.
Diffstat (limited to 'rpc')
-rw-r--r--rpc/api.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/rpc/api.go b/rpc/api.go
index b622945eb..9c792dd61 100644
--- a/rpc/api.go
+++ b/rpc/api.go
@@ -269,7 +269,7 @@ func (p *EthereumApi) Transact(args *NewTxArgs, reply *interface{}) error {
}
func (p *EthereumApi) Call(args *NewTxArgs, reply *interface{}) error {
- result, err := p.xeth().Call( /* TODO specify account */ args.To, args.Value, args.Gas, args.GasPrice, args.Data)
+ result, err := p.xeth().Call(args.From, args.To, args.Value, args.Gas, args.GasPrice, args.Data)
if err != nil {
return err
}