Commit 687f0d38 authored by madengji's avatar madengji Committed by vipwzw

err cross exec

parent c694d233
...@@ -758,7 +758,7 @@ func execCrossTx(a *action, tx *types.TransactionDetail, crossTxHash []byte) (*t ...@@ -758,7 +758,7 @@ func execCrossTx(a *action, tx *types.TransactionDetail, crossTxHash []byte) (*t
} }
if payload.Ty == pt.ParacrossActionCrossAssetTransfer { if payload.Ty == pt.ParacrossActionCrossAssetTransfer {
act, err := getCrossAction(payload.GetCrossAssetTransfer(), string(a.tx.Execer)) act, err := getCrossAction(payload.GetCrossAssetTransfer(), string(tx.Tx.Execer))
if err != nil { if err != nil {
clog.Crit("paracross.Commit getCrossAction Tx failed", "error", err, "txHash", common.ToHex(crossTxHash)) clog.Crit("paracross.Commit getCrossAction Tx failed", "error", err, "txHash", common.ToHex(crossTxHash))
return nil, err return nil, err
...@@ -802,7 +802,7 @@ func rollbackCrossTx(a *action, tx *types.TransactionDetail, crossTxHash []byte) ...@@ -802,7 +802,7 @@ func rollbackCrossTx(a *action, tx *types.TransactionDetail, crossTxHash []byte)
} }
if payload.Ty == pt.ParacrossActionCrossAssetTransfer { if payload.Ty == pt.ParacrossActionCrossAssetTransfer {
act, err := getCrossAction(payload.GetCrossAssetTransfer(), string(a.tx.Execer)) act, err := getCrossAction(payload.GetCrossAssetTransfer(), string(tx.Tx.Execer))
if err != nil { if err != nil {
clog.Crit("paracross.Commit.rollbackCrossTx getCrossAction failed", "error", err, "txHash", common.ToHex(crossTxHash)) clog.Crit("paracross.Commit.rollbackCrossTx getCrossAction failed", "error", err, "txHash", common.ToHex(crossTxHash))
return nil, err return nil, err
......
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