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