Skip to content
This repository has been archived by the owner on Jan 8, 2025. It is now read-only.

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
Eikix committed Dec 18, 2023
1 parent 97ac9d1 commit 987b028
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/block.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ async fn test_to_eth_block_with_tx_hashes(#[future] counter: (Katana, KakarotEvm
let client = katana.client();
let eoa = katana.eoa();
let tx_hash = eoa.call_evm_contract(&counter, "inc", (), 0).await.expect("Failed to increment counter");
let tx_hash = FieldElement::from_hex_be(&tx_hash.to_string()).unwrap();
let tx_hash: FieldElement = Felt252Wrapper::try_from(tx_hash).unwrap().into();

// Query transaction receipt
let tx_receipt =
Expand Down Expand Up @@ -68,7 +68,7 @@ async fn test_to_eth_block_with_txs(#[future] counter: (Katana, KakarotEvmContra
let client = katana.client();
let eoa = katana.eoa();
let tx_hash = eoa.call_evm_contract(&counter, "inc", (), 0).await.expect("Failed to increment counter");
let tx_hash = FieldElement::from_hex_be(&tx_hash.to_string()).unwrap();
let tx_hash: FieldElement = Felt252Wrapper::try_from(tx_hash).unwrap().into();

let tx_receipt =
client.starknet_provider().get_transaction_receipt(tx_hash).await.expect("Failed to query transaction receipt");
Expand Down

0 comments on commit 987b028

Please sign in to comment.