Commit b402706c authored by pengjun's avatar pengjun

#627 update chain33config

parent 960d2433
......@@ -99,7 +99,8 @@ type Action struct {
func NewCollateralizeAction(c *Collateralize, tx *types.Transaction, index int) *Action {
hash := tx.Hash()
fromaddr := tx.From()
tokenDb, err := account.NewAccountDB(tokenE.GetName(), pty.CCNYTokenName, c.GetStateDB())
cfg := c.GetAPI().GetConfig()
tokenDb, err := account.NewAccountDB(cfg, tokenE.GetName(), pty.CCNYTokenName, c.GetStateDB())
if err != nil {
clog.Error("NewCollateralizeAction", "Get Account DB error", "err", err)
return nil
......
......@@ -171,7 +171,8 @@ type Action struct {
func NewIssuanceAction(c *Issuance, tx *types.Transaction, index int) *Action {
hash := tx.Hash()
fromaddr := tx.From()
tokenDb, err := account.NewAccountDB(tokenE.GetName(), pty.CCNYTokenName, c.GetStateDB())
cfg := c.GetAPI().GetConfig()
tokenDb, err := account.NewAccountDB(cfg, tokenE.GetName(), pty.CCNYTokenName, c.GetStateDB())
if err != nil {
clog.Error("NewIssuanceAction", "Get Account DB error", "err", err)
return nil
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment