Skip to content

Commit

Permalink
Merge pull request #366 from lochjin/main
Browse files Browse the repository at this point in the history
BUG:CrossChainVMTx marshal hex string error
  • Loading branch information
dindinw authored Apr 5, 2023
2 parents 1594da1 + 95fdb75 commit 64650ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/marshal/marshal.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ func MarshJsonVin(tx *types.Transaction) []json.Vin {
// disbuf, _ := txscript.DisasmString(sig) //TODO, the Disasm is not fully work for the cross-chain tx
vinList[0].ScriptSig = &json.ScriptSig{
// Asm: disbuf,
Hex: hex.EncodeToString(sig),
Hex: string(sig),
}
vinList[0].Txid = "0x" + tx.TxIn[0].PreviousOut.Hash.String()
return vinList
Expand Down

0 comments on commit 64650ec

Please sign in to comment.