Skip to content

Commit

Permalink
update bitcoinsv dependency to 0.2.7
Browse files Browse the repository at this point in the history
  • Loading branch information
Danconnolly committed Sep 27, 2024
1 parent f31782d commit a65950c
Show file tree
Hide file tree
Showing 6 changed files with 212 additions and 11 deletions.
209 changes: 205 additions & 4 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 client/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jsonrpc = { version = "0.16.0", features = ["minreq_http"]}
serde = "1"
serde_json = "1"
hex = "0.4.3"
bitcoinsv = "0.2.5"
bitcoinsv = "0.2.7"
async-trait = "0.1.75"
url = "2.5.0"

Expand Down
6 changes: 3 additions & 3 deletions client/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ pub enum Error {
/// The URI could not be parsed.
InvalidUri,
MinReqError(jsonrpc::minreq_http::Error),
SVJsonError(bitcoinsv::Error),
SVJsonError(bitcoinsv::BsvError),
}

impl From<jsonrpc::error::Error> for Error {
Expand Down Expand Up @@ -51,8 +51,8 @@ impl From<jsonrpc::minreq_http::Error> for Error {
}
}

impl From<bitcoinsv::Error> for Error {
fn from(e: bitcoinsv::Error) -> Error {
impl From<bitcoinsv::BsvError> for Error {
fn from(e: bitcoinsv::BsvError) -> Error {
Error::SVJsonError(e)
}
}
Expand Down
2 changes: 1 addition & 1 deletion integration_test/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ log = "0.4"
env_logger = "0.10.1"
tokio = { version = "1", features = ["full"] }
tokio-stream = "0.1"
bitcoinsv = "0.2.4"
bitcoinsv = "0.2.7"
2 changes: 1 addition & 1 deletion json/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ path = "src/lib.rs"
hex = "0.4.3"
serde = { version = "1", features = [ "derive" ] }
serde_json = "1"
bitcoinsv = "0.2.5"
bitcoinsv = "0.2.7"

[dev-dependencies]
approx = "0.5"
2 changes: 1 addition & 1 deletion json/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -646,7 +646,7 @@ impl GetRawTransactionResult {
self.vin.len() == 1 && self.vin[0].is_coinbase()
}

pub fn transaction(&self) -> Result<Tx, bitcoinsv::Error> {
pub fn transaction(&self) -> Result<Tx, bitcoinsv::BsvError> {
let tx = Tx::from_hex(&self.hex)?;
Ok(tx)
}
Expand Down

0 comments on commit a65950c

Please sign in to comment.