Commit 2386789f authored by suyanlong's avatar suyanlong

Fix bug

parent 3fa6312b
......@@ -497,6 +497,10 @@ func (p *Paracross) lockCrossEvent(lock *paracorssTypes.CrossAssetTransfer, tx *
if addr == "" {
addr = tx.From()
}
symbol := strings.ToUpper(lock.AssetSymbol)
if symbol != "BTY" && symbol != "YCC" {
symbol = fmt.Sprintf("%s.%s", lock.AssetExec, lock.AssetSymbol)
}
event := &types.Event{
TxID: util.ToHex(tx.Hash()),
BlockNumber: uint64(height),
......@@ -510,7 +514,7 @@ func (p *Paracross) lockCrossEvent(lock *paracorssTypes.CrossAssetTransfer, tx *
EventType: types.EventType_Lock,
LockAddress: addr, // 用户地址
LockAmount: lock.Amount,
Symbol: types.Symbol(strings.ToUpper(lock.AssetSymbol)),
Symbol: types.Symbol(symbol),
Extra: []byte(lock.Note),
Height: height,
Nonce: tx.Nonce,
......
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