Skip to content

Commit

Permalink
chore(deps): Update Pallas to v0.13.1
Browse files Browse the repository at this point in the history
  • Loading branch information
scarmuega committed Aug 8, 2022
1 parent b22dca2 commit b197c06
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 21 deletions.
33 changes: 17 additions & 16 deletions Cargo.lock

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

2 changes: 1 addition & 1 deletion Cargo.toml
Expand Up @@ -12,7 +12,7 @@ authors = ["Santiago Carmuega <santiago@carmuega.me>"]


[dependencies]
pallas = "0.11.0"
pallas = "0.13.1"
# pallas = { git = "https://github.com/txpipe/pallas" }
# pallas = { path = "../pallas/pallas" }
hex = "0.4.3"
Expand Down
7 changes: 6 additions & 1 deletion src/mapper/babbage.rs
Expand Up @@ -116,7 +116,12 @@ 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, 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
7 changes: 6 additions & 1 deletion src/mapper/map.rs
Expand Up @@ -469,7 +469,12 @@ 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 b197c06

Please sign in to comment.