Skip to content

Commit

Permalink
use bitcoinsv dev version
Browse files Browse the repository at this point in the history
  • Loading branch information
Danconnolly committed Feb 8, 2025
1 parent 6282b88 commit 5c6f2b4
Show file tree
Hide file tree
Showing 6 changed files with 37 additions and 46 deletions.
68 changes: 29 additions & 39 deletions Cargo.lock

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

3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ members = [
]

[workspace.dependencies]
bitcoinsv = "0.2.7"
bitcoinsv = { git = "https://github.com/Danconnolly/rust-bitcoinsv.git" }

2 changes: 1 addition & 1 deletion client/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ path = "src/lib.rs"
[dependencies]
async-trait = "0.1.75"
bitcoinsv = { workspace = true }
bitcoinsv-rpc-json = { version = "1.0.2" }
bitcoinsv-rpc-json = { path = "../json" }
hex = "0.4.3"
jsonrpc = { version = "0.16.0", features = ["minreq_http"]}
log = "0.4.5"
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::BsvError),
SVJsonError(bitcoinsv::Error),
}

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::BsvError> for Error {
fn from(e: bitcoinsv::BsvError) -> Error {
impl From<bitcoinsv::Error> for Error {
fn from(e: bitcoinsv::Error) -> 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 @@ -8,5 +8,5 @@ edition = "2021"
bitcoinsv = { workspace = true }
bitcoinsv-rpc = { path = "../client" }
tokio = { version = "1", features = ["full"] }
tokio-stream = "0.1"
tokio-stream = "0.1.17"

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

0 comments on commit 5c6f2b4

Please sign in to comment.