Add missing err checks on From() (skip RPC for now)

This commit is contained in:
Gustav Simonsson
2015-06-01 22:00:48 +02:00
parent 5b14fdb94b
commit 147a699c65
4 changed files with 25 additions and 18 deletions

View File

@ -160,7 +160,6 @@ func (js *jsre) pendingTransactions(call otto.FunctionCall) otto.Value {
//ltxs := make([]*tx, len(txs))
var ltxs []*tx
for _, tx := range txs {
// no need to check err
if from, _ := tx.From(); accountSet.Has(from) {
ltxs = append(ltxs, newTx(tx))
}