Skip to content

Commit

Permalink
linter fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mfranciszkiewicz committed Nov 29, 2021
1 parent 1dfd4c5 commit 06ccef7
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions core/payment-driver/erc20/src/erc20/wallet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ use crate::{
RINKEBY_NETWORK,
};
use ya_payment_driver::db::models::TransactionStatus;
use ya_payment_driver::db::schema::transaction::columns::last_error_msg;

pub async fn account_balance(address: H160, network: Network) -> Result<BigDecimal, GenericError> {
let balance_com = ethereum::get_glm_balance(address, network).await?;
Expand Down Expand Up @@ -216,14 +215,10 @@ pub async fn send_transactions(
match serde_json::from_str::<YagnaRawTransaction>(&tx.encoded) {
Ok(raw_tx) => raw_tx,
Err(err) => {
let error = format!("JSON parse failed, unrecoverable error: {}", err);
//handle problem when deserializing transaction
dao.transaction_confirmed_and_failed(
&tx.tx_id,
"",
None,
"Json parse failed, unrecoverable error",
)
.await;
dao.transaction_confirmed_and_failed(&tx.tx_id, "", None, error.as_str())
.await;
continue;
}
};
Expand Down

0 comments on commit 06ccef7

Please sign in to comment.