Skip to content

Commit

Permalink
simplify src/transaction/bundlr.rs Data
Browse files Browse the repository at this point in the history
  • Loading branch information
lispwisp committed May 13, 2024
1 parent eca121d commit a0789d0
Show file tree
Hide file tree
Showing 5 changed files with 176 additions and 118 deletions.
147 changes: 110 additions & 37 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
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ sha2 = "0.10.2"
strum = { version = "0.24", features = ["derive"] }
strum_macros = "0.24"
thiserror = "1.0.30"
tokio = { version = "1.14.0", features = [ "fs" ]}
tokio-util = "0.6.9"
tokio = { version = "1.37.0", features = [ "fs" ]}
tokio-util = { version = "0.6.9", features = [ "io" ]}
validator = { version = "0.16", features = ["derive"] }
web3 = { version = "0.19.0", optional = true, default-features = false, features = ["http-rustls-tls", "signing"]}

Expand Down
4 changes: 2 additions & 2 deletions src/bundlr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ where
/// ```
pub fn create_transaction(
&self,
data: Vec<u8>,
data: tokio::fs::File,
additional_tags: Vec<Tag>,
) -> Result<BundlrTx, BundlrError> {
BundlrTx::new(vec![], data, additional_tags)
Expand Down Expand Up @@ -352,7 +352,7 @@ where
/// # }
/// ```
pub async fn send_transaction(&self, tx: BundlrTx) -> Result<Value, BundlrError> {
let tx = tx.as_bytes()?;
let tx = tx.as_bytes().await?;

let response = self
.client
Expand Down
Loading

0 comments on commit a0789d0

Please sign in to comment.