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
cc12a363
Commit
cc12a363
authored
Aug 10, 2022
by
suyanlong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bug for execname
parent
dfae34c5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
paracross.go
paracross/paracross.go
+6
-3
No files found.
paracross/paracross.go
View file @
cc12a363
...
...
@@ -716,7 +716,7 @@ func (p *Paracross) SubmitIBTP(ibtp *pb.IBTP) (*pb.SubmitIBTPResponse, error) {
if
event
.
Payload
.
EventType
==
types
.
EventType_Burn
{
// 用户在联盟链一侧发起销毁。
// 第一次提交。
TokenSymbol
:=
""
// TODO 销毁bty时,不要填写!!!
TokenSymbol
:=
""
if
strings
.
ToUpper
(
p
.
chain33Config
.
Chain33
.
Symbol
)
==
"YCC"
{
TokenSymbol
=
"coins.ycc"
}
else
{
...
...
@@ -728,8 +728,8 @@ func (p *Paracross) SubmitIBTP(ibtp *pb.IBTP) (*pb.SubmitIBTPResponse, error) {
Fee
:
p
.
MinTxFeeRate
,
Note
:
payload
.
Content
,
// 关联数据
IsWithdraw
:
true
,
TokenSymbol
:
TokenSymbol
,
// TODO 销毁bty时,不要填写!!!
ExecName
:
p
.
title
+
execer
,
// TODO 平行链执行器。
TokenSymbol
:
TokenSymbol
,
ExecName
:
p
.
title
+
execer
,
})
if
err
!=
nil
{
p
.
logger
.
Error
(
"CreateRawAssetTransferTxExt error"
,
"error"
,
err
)
...
...
@@ -737,6 +737,9 @@ func (p *Paracross) SubmitIBTP(ibtp *pb.IBTP) (*pb.SubmitIBTPResponse, error) {
}
tx
.
Nonce
=
int64
(
ibtp
.
Nonce
)
tx
.
Sign
(
types33
.
SECP256K1
,
p
.
privateKey
)
data
:=
hex
.
EncodeToString
(
types33
.
Encode
(
tx
))
txTmp
,
_
:=
types33
.
PBToJSON
(
tx
)
p
.
logger
.
Info
(
"SendTransaction "
,
"hash"
,
common
.
HashHex
(
tx
.
Hash
()),
"error"
,
err
,
"tx"
,
util
.
FormatJSON
(
string
(
txTmp
)),
"data"
,
data
)
ret
,
err
:=
p
.
grpcClient
.
SendTransaction
(
p
.
ctx
,
tx
)
if
err
!=
nil
{
data
:=
hex
.
EncodeToString
(
types33
.
Encode
(
tx
))
...
...
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