Commit 3d0871f1 authored by vicotor's avatar vicotor

update code

parent f253c306
...@@ -164,12 +164,13 @@ func (d *Dao) GetHistoryInfo(user string) (history apiModel.History, err error) ...@@ -164,12 +164,13 @@ func (d *Dao) GetHistoryInfo(user string) (history apiModel.History, err error)
Token: event.FromToken, Token: event.FromToken,
TokenSymbol: tokenInfo.Symbol, TokenSymbol: tokenInfo.Symbol,
UrlSource: fromChain.Explorer + "/tx/" + event.FromChainTxHash, UrlSource: fromChain.Explorer + "/tx/" + event.FromChainTxHash,
UrlTarget: toChain.Explorer + "/tx/" + event.ToChainTxHash,
Status: constant.TransferStatus(event.ToChainStatus).String(), Status: constant.TransferStatus(event.ToChainStatus).String(),
} }
if event.ToChainStatus <= int(constant.TransferChainWaitConfirm) { if event.ToChainStatus <= int(constant.TransferChainWaitConfirm) {
pendingHistory = append(pendingHistory, record) pendingHistory = append(pendingHistory, record)
} else { } else {
record.UrlTarget = toChain.Explorer + "/tx/" + event.ToChainTxHash
completedHistory = append(completedHistory, record) completedHistory = append(completedHistory, record)
} }
} }
......
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