Skip to content

Commit

Permalink
Bump Pallas to 0.12.0 hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastienGllmt committed Aug 8, 2022
1 parent 44cacbe commit 118f5aa
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 30 deletions.
41 changes: 17 additions & 24 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Expand Up @@ -12,8 +12,8 @@ authors = ["Santiago Carmuega <santiago@carmuega.me>"]


[dependencies]
pallas = "0.11.0"
# pallas = { git = "https://github.com/txpipe/pallas" }
# pallas = "0.11.0"
pallas = { git = "https://github.com/txpipe/pallas" }
# pallas = { path = "../pallas/pallas" }
hex = "0.4.3"
net2 = "0.2.37"
Expand Down
2 changes: 1 addition & 1 deletion src/mapper/babbage.rs
Expand Up @@ -120,7 +120,7 @@ impl EventWriter {
slot: source.header.header_body.slot,
epoch: relative_epoch.map(|(epoch, _)| epoch),
epoch_slot: relative_epoch.map(|(_, epoch_slot)| epoch_slot),
previous_hash: hex::encode(source.header.header_body.prev_hash),
previous_hash: source.header.header_body.prev_hash.map(hex::encode).unwrap_or_default(),
cbor_hex: match self.config.include_block_cbor {
true => hex::encode(cbor).into(),
false => None,
Expand Down
4 changes: 2 additions & 2 deletions src/mapper/collect.rs
Expand Up @@ -6,7 +6,7 @@ use pallas::{
Redeemer, RewardAccount, TransactionInput, VKeyWitness, Value,
},
babbage::{
LegacyTransacionOutput, PlutusV2Script, PostAlonzoTransactionOutput, TransactionOutput,
LegacyTransactionOutput, PlutusV2Script, PostAlonzoTransactionOutput, TransactionOutput,
},
ToHash,
},
Expand All @@ -33,7 +33,7 @@ impl EventWriter {

pub fn collect_legacy_output_records(
&self,
source: &[LegacyTransacionOutput],
source: &[LegacyTransactionOutput],
) -> Result<Vec<TxOutputRecord>, Error> {
source
.iter()
Expand Down
2 changes: 1 addition & 1 deletion src/mapper/map.rs
Expand Up @@ -474,7 +474,7 @@ impl EventWriter {
slot: source.header.header_body.slot,
epoch: relative_epoch.map(|(epoch, _)| epoch),
epoch_slot: relative_epoch.map(|(_, epoch_slot)| epoch_slot),
previous_hash: hex::encode(source.header.header_body.prev_hash),
previous_hash: source.header.header_body.prev_hash.map(hex::encode).unwrap_or_default(),
cbor_hex: match self.config.include_block_cbor {
true => hex::encode(cbor).into(),
false => None,
Expand Down

0 comments on commit 118f5aa

Please sign in to comment.