Commit b557e0bd authored by liuyuhang's avatar liuyuhang

modify get fund addr

parent d337d283
......@@ -343,7 +343,7 @@ func (action *Action) TicketMiner(miner *ty.TicketMiner, index int) (*types.Rece
var receipt2 *types.Receipt
if types.IsFork(action.height, "ForkTicketFundAddrV1") {
// issue coins to exec addr
addr := types.GetFundAddr()
addr := types.MGStr("mver.consensus.fundKeyAddr", action.height)
receipt2, err = action.coinsAccount.ExecIssueCoins(addr, cfg.CoinDevFund)
if err != nil {
tlog.Error("TicketMiner.ExecDepositFrozen fund to autonomy fund", "addr", addr)
......
......@@ -46,7 +46,7 @@ func (t *token) Exec_TokenPreCreate(payload *tokenty.TokenPreCreate, tx *types.T
}
func (t *token) Exec_TokenFinishCreate(payload *tokenty.TokenFinishCreate, tx *types.Transaction, index int) (*types.Receipt, error) {
action := newTokenAction(t, types.GetFundAddr(), tx)
action := newTokenAction(t, types.MGStr("mver.consensus.fundKeyAddr", t.GetHeight()), tx)
return action.finishCreate(payload)
}
......
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