Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
sidecar-client-chain33
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
link33
sidecar-client-chain33
Commits
2386789f
Commit
2386789f
authored
May 08, 2023
by
suyanlong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix bug
parent
3fa6312b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
paracross.go
paracross/paracross.go
+5
-1
No files found.
paracross/paracross.go
View file @
2386789f
...
@@ -497,6 +497,10 @@ func (p *Paracross) lockCrossEvent(lock *paracorssTypes.CrossAssetTransfer, tx *
...
@@ -497,6 +497,10 @@ func (p *Paracross) lockCrossEvent(lock *paracorssTypes.CrossAssetTransfer, tx *
if
addr
==
""
{
if
addr
==
""
{
addr
=
tx
.
From
()
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
{
event
:=
&
types
.
Event
{
TxID
:
util
.
ToHex
(
tx
.
Hash
()),
TxID
:
util
.
ToHex
(
tx
.
Hash
()),
BlockNumber
:
uint64
(
height
),
BlockNumber
:
uint64
(
height
),
...
@@ -510,7 +514,7 @@ func (p *Paracross) lockCrossEvent(lock *paracorssTypes.CrossAssetTransfer, tx *
...
@@ -510,7 +514,7 @@ func (p *Paracross) lockCrossEvent(lock *paracorssTypes.CrossAssetTransfer, tx *
EventType
:
types
.
EventType_Lock
,
EventType
:
types
.
EventType_Lock
,
LockAddress
:
addr
,
// 用户地址
LockAddress
:
addr
,
// 用户地址
LockAmount
:
lock
.
Amount
,
LockAmount
:
lock
.
Amount
,
Symbol
:
types
.
Symbol
(
s
trings
.
ToUpper
(
lock
.
AssetSymbol
)
),
Symbol
:
types
.
Symbol
(
s
ymbol
),
Extra
:
[]
byte
(
lock
.
Note
),
Extra
:
[]
byte
(
lock
.
Note
),
Height
:
height
,
Height
:
height
,
Nonce
:
tx
.
Nonce
,
Nonce
:
tx
.
Nonce
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment