fix: fix unable to build and sign txs (#345)
This commit is contained in:
parent
f7a2c8e786
commit
fcbaf4ed97
3 changed files with 5 additions and 6 deletions
|
|
@ -626,7 +626,7 @@ impl BuiltTransaction {
|
|||
self.signatures = Some(new_sigs);
|
||||
|
||||
// TODO: chance for serialisation round trip issues?
|
||||
let mut tx = babbage::Tx::decode_fragment(&self.tx_hash.0)
|
||||
let mut tx = babbage::Tx::decode_fragment(&self.tx_bytes.0)
|
||||
.map_err(|_| TxBuilderError::CorruptedTxBytes)?;
|
||||
|
||||
let mut vkey_witnesses = tx.transaction_witness_set.vkeywitness.unwrap_or_default();
|
||||
|
|
@ -667,7 +667,7 @@ impl BuiltTransaction {
|
|||
self.signatures = Some(new_sigs);
|
||||
|
||||
// TODO: chance for serialisation round trip issues?
|
||||
let mut tx = babbage::Tx::decode_fragment(&self.tx_hash.0)
|
||||
let mut tx = babbage::Tx::decode_fragment(&self.tx_bytes.0)
|
||||
.map_err(|_| TxBuilderError::CorruptedTxBytes)?;
|
||||
|
||||
let mut vkey_witnesses = tx.transaction_witness_set.vkeywitness.unwrap_or_default();
|
||||
|
|
@ -703,7 +703,7 @@ impl BuiltTransaction {
|
|||
self.signatures = Some(new_sigs);
|
||||
|
||||
// TODO: chance for serialisation round trip issues?
|
||||
let mut tx = babbage::Tx::decode_fragment(&self.tx_hash.0)
|
||||
let mut tx = babbage::Tx::decode_fragment(&self.tx_bytes.0)
|
||||
.map_err(|_| TxBuilderError::CorruptedTxBytes)?;
|
||||
|
||||
let mut vkey_witnesses = tx.transaction_witness_set.vkeywitness.unwrap_or_default();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue