tradeAction not need coinsAccount field
@@ -11,7 +11,6 @@ import (
"strconv"
"strings"
- "github.com/33cn/chain33/account"
"github.com/33cn/chain33/client"
"github.com/33cn/chain33/common"
dbm "github.com/33cn/chain33/common/db"
@@ -247,7 +246,6 @@ func (buydb *buyDB) getSellLogs(sellerAddr string, sellID string, boardlotCnt in
}
type tradeAction struct {
- coinsAccount *account.DB
db dbm.KV
txhash string
fromaddr string
@@ -259,7 +257,7 @@ type tradeAction struct {
func newTradeAction(t *trade, tx *types.Transaction) *tradeAction {
hash := hex.EncodeToString(tx.Hash())
fromaddr := tx.From()
- return &tradeAction{t.GetCoinsAccount(), t.GetStateDB(), hash, fromaddr,
+ return &tradeAction{t.GetStateDB(), hash, fromaddr,
t.GetBlockTime(), t.GetHeight(), dapp.ExecAddress(string(tx.Execer))}
}
