From 43cd875ff7c69488bcf6e6c8ad816ffe4f95778c Mon Sep 17 00:00:00 2001 From: DenisRybas Date: Mon, 25 Dec 2023 02:38:40 +0300 Subject: [PATCH] fixed errors Signed-off-by: DenisRybas --- indy-besu/vdr/src/client/client.rs | 2 +- indy-besu/vdr/src/client/implementation/web3/client.rs | 10 ++++++++-- indy-besu/vdr/src/types/transaction.rs | 2 +- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/indy-besu/vdr/src/client/client.rs b/indy-besu/vdr/src/client/client.rs index d9bbf3426..638f40e22 100644 --- a/indy-besu/vdr/src/client/client.rs +++ b/indy-besu/vdr/src/client/client.rs @@ -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; diff --git a/indy-besu/vdr/src/client/implementation/web3/client.rs b/indy-besu/vdr/src/client/implementation/web3/client.rs index 336558c3f..5bdadb586 100644 --- a/indy-besu/vdr/src/client/implementation/web3/client.rs +++ b/indy-besu/vdr/src/client/implementation/web3/client.rs @@ -14,7 +14,10 @@ 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, }; @@ -22,7 +25,10 @@ use web3::{ 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, }; diff --git a/indy-besu/vdr/src/types/transaction.rs b/indy-besu/vdr/src/types/transaction.rs index 7b78783ce..05f0a300d 100644 --- a/indy-besu/vdr/src/types/transaction.rs +++ b/indy-besu/vdr/src/types/transaction.rs @@ -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