Commit b6c52534 authored by suyanlong's avatar suyanlong

fix bug for execname

parent cc12a363
......@@ -722,6 +722,7 @@ func (p *Paracross) SubmitIBTP(ibtp *pb.IBTP) (*pb.SubmitIBTPResponse, error) {
} else {
TokenSymbol = "coins.bty"
}
p.logger.Info("SendTransaction ", "TokenSymbol", TokenSymbol)
tx, err := p.CreateRawAssetTransferTxExt(&types33.CreateTx{
To: event.Payload.BurnAddress,
Amount: event.Payload.BurnAmount,
......@@ -731,6 +732,7 @@ func (p *Paracross) SubmitIBTP(ibtp *pb.IBTP) (*pb.SubmitIBTPResponse, error) {
TokenSymbol: TokenSymbol,
ExecName: p.title + execer,
})
p.logger.Info("SendTransaction ", "tx", tx)
if err != nil {
p.logger.Error("CreateRawAssetTransferTxExt error", "error", err)
return nil, err
......@@ -784,11 +786,12 @@ func (p *Paracross) CreateRawAssetTransferTxExt(param *types33.CreateTx) (*types
AssetSymbol: param.TokenSymbol,
Amount: param.Amount,
ToAddr: param.GetTo(),
Note: string(param.GetNote()),
//Note: string(param.GetNote()),
}}
transfer.Value = v
transfer.Ty = paracorssTypes.ParacrossActionCrossAssetTransfer
}
p.logger.Info("CreateRawAssetTransferTxExt ", "transfer", transfer)
rawtx := &types33.Transaction{
Execer: []byte(param.GetExecName()),
Payload: types33.Encode(transfer),
......
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