Skip to content

Commit

Permalink
fixed errors
Browse files Browse the repository at this point in the history
Signed-off-by: DenisRybas <[email protected]>
  • Loading branch information
DenisRybas committed Dec 24, 2023
1 parent 4302afe commit 43cd875
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion indy-besu/vdr/src/client/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -166,9 +166,9 @@ impl LedgerClient {
#[cfg(test)]
pub mod test {
use super::*;
use async_trait::async_trait;
use ethereum_types::H256;
use once_cell::sync::Lazy;
use std::{env, fs};
use std::{env, fs, ops::Deref};
use web3::types::Transaction as Web3Transaction;

Expand Down
10 changes: 8 additions & 2 deletions indy-besu/vdr/src/client/implementation/web3/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,21 @@ use std::{str::FromStr, time::Duration};
use web3::{
api::Eth,
transports::Http,
types::{Address as EthAddress, Bytes, CallRequest, H256},
types::{
Address as EthAddress, Bytes, CallRequest, Transaction as Web3Transaction, TransactionId,
H256,
},
Web3,
};

#[cfg(feature = "wasm")]
use web3_wasm::{
api::Eth,
transports::Http,
types::{Address as EthAddress, Bytes, CallRequest, H256},
types::{
Address as EthAddress, Bytes, CallRequest, Transaction as Web3Transaction, TransactionId,
H256,
},
Web3,
};

Expand Down
2 changes: 1 addition & 1 deletion indy-besu/vdr/src/types/transaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ pub enum TransactionType {
}

/// Transaction object
#[derive(Debug, Default)]
#[derive(Debug, Clone, Default)]
pub struct Transaction {
/// type of transaction: write/read
/// depending on the transaction type different client methods will be executed to submit transaction
Expand Down

0 comments on commit 43cd875

Please sign in to comment.