Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
Signed-off-by: DenisRybas <[email protected]>
  • Loading branch information
DenisRybas committed Jan 25, 2024
1 parent 4616adc commit 78f754b
Showing 1 changed file with 0 additions and 30 deletions.
30 changes: 0 additions & 30 deletions indy-besu/vdr/src/client/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -440,36 +440,6 @@ pub mod test {
));
}

#[async_std::test]
async fn submit_transaction_from_does_not_exist_for_write() {
let transaction = Transaction {
from: None,
..write_transaction()
};
let client = client();

let submit_err = client.submit_transaction(&transaction).await.unwrap_err();

assert!(matches!(
submit_err, | VdrError::ClientInvalidTransaction { .. }
));
}

#[async_std::test]
async fn submit_transaction_invalid_sender_address() {
let transaction = Transaction {
from: Some(Address::from("123")),
..write_transaction()
};
let client = client();

let submit_err = client.submit_transaction(&transaction).await.unwrap_err();

assert!(matches!(
submit_err, | VdrError::ClientInvalidTransaction { .. }
));
}

#[async_std::test]
async fn call_transaction_empty_recipient_address() {
let transaction = Transaction {
Expand Down

0 comments on commit 78f754b

Please sign in to comment.