fix: fix unable to build and sign txs (#345)

This commit is contained in:
Santiago Carmuega 2023-12-04 09:22:56 -03:00 committed by GitHub
parent f7a2c8e786
commit fcbaf4ed97
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 6 deletions

View file

@ -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();