Skip to content

Commit

Permalink
chore: don’t depend on a PR of pallas
Browse files Browse the repository at this point in the history
  • Loading branch information
michalrus committed Nov 25, 2024
1 parent 52b566e commit a681f3e
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 29 deletions.
36 changes: 24 additions & 12 deletions Cargo.lock

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

16 changes: 0 additions & 16 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,6 @@ name = "blockfrost-platform"
version = "0.0.1"
edition = "2021"

[patch.crates-io]
# Temporary fix for the `RejectReason` deserializer in `localtxsubmission/codec.rs`: <https://github.com/txpipe/pallas/pull/548>.
# The PR is based on release 0.31.0.
pallas = { git = "https://github.com/txpipe/pallas.git", rev = "de571b1427bc7d519c0e4943461f4311203b299c" }
pallas-addresses = { git = "https://github.com/txpipe/pallas.git", rev = "de571b1427bc7d519c0e4943461f4311203b299c" }
pallas-applying = { git = "https://github.com/txpipe/pallas.git", rev = "de571b1427bc7d519c0e4943461f4311203b299c" }
pallas-codec = { git = "https://github.com/txpipe/pallas.git", rev = "de571b1427bc7d519c0e4943461f4311203b299c" }
pallas-configs = { git = "https://github.com/txpipe/pallas.git", rev = "de571b1427bc7d519c0e4943461f4311203b299c" }
pallas-crypto = { git = "https://github.com/txpipe/pallas.git", rev = "de571b1427bc7d519c0e4943461f4311203b299c" }
pallas-network = { git = "https://github.com/txpipe/pallas.git", rev = "de571b1427bc7d519c0e4943461f4311203b299c" }
pallas-primitives = { git = "https://github.com/txpipe/pallas.git", rev = "de571b1427bc7d519c0e4943461f4311203b299c" }
pallas-traverse = { git = "https://github.com/txpipe/pallas.git", rev = "de571b1427bc7d519c0e4943461f4311203b299c" }
pallas-txbuilder = { git = "https://github.com/txpipe/pallas.git", rev = "de571b1427bc7d519c0e4943461f4311203b299c" }
pallas-utxorpc = { git = "https://github.com/txpipe/pallas.git", rev = "de571b1427bc7d519c0e4943461f4311203b299c" }
pallas-wallet = { git = "https://github.com/txpipe/pallas.git", rev = "de571b1427bc7d519c0e4943461f4311203b299c" }

[dependencies]
axum = "0.7.6"
tokio = { version = "1.40.0", features = ["rt", "rt-multi-thread"] }
Expand Down
2 changes: 1 addition & 1 deletion src/node/connection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ impl NodeClient {
}

pub fn try_decode_error(buffer: &[u8]) -> Result<TxValidationError, Error> {
let maybe_error = Decoder::new(buffer).decode();
let maybe_error = Decoder::new(buffer[2..].as_ref()).decode();

match maybe_error {
Ok(error) => Ok(error),
Expand Down

0 comments on commit a681f3e

Please sign in to comment.