Skip to content

Commit

Permalink
Merge PR: delete confirm transferownership info when confirm finished (
Browse files Browse the repository at this point in the history
…#471)

Co-authored-by: MengXiangJian <[email protected]>
  • Loading branch information
ilovers and xiangjianmeng authored Dec 2, 2020
1 parent 9a0cda4 commit 76a1a5c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion x/dex/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ package dex

import (
"fmt"
"github.com/okex/okexchain/x/common"
"strconv"

"github.com/okex/okexchain/x/common"

"github.com/okex/okexchain/x/common/perf"
"github.com/okex/okexchain/x/dex/types"

Expand Down Expand Up @@ -256,6 +257,8 @@ func handleMsgConfirmOwnership(ctx sdk.Context, keeper IKeeper, msg MsgConfirmOw
tokenPair.Owner = msg.Address
keeper.UpdateTokenPair(ctx, msg.Product, tokenPair)
keeper.UpdateUserTokenPair(ctx, msg.Product, confirmOwnership.FromAddress, msg.Address)
// delete ownership confirming information
keeper.DeleteConfirmOwnership(ctx, confirmOwnership.Product)

logger.Debug(fmt.Sprintf("successfully handleMsgConfirmOwnership: "+
"BlockHeight: %d, Msg: %+v", ctx.BlockHeight(), msg))
Expand Down

0 comments on commit 76a1a5c

Please sign in to comment.