From 8c609d334d369732ddacfe01d7b6920fbe60d8b8 Mon Sep 17 00:00:00 2001 From: enitrat Date: Fri, 4 Oct 2024 11:45:31 +0200 Subject: [PATCH] fix tests --- crates/contracts/tests/test_kakarot_core.cairo | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/crates/contracts/tests/test_kakarot_core.cairo b/crates/contracts/tests/test_kakarot_core.cairo index 45fde481..192582f0 100644 --- a/crates/contracts/tests/test_kakarot_core.cairo +++ b/crates/contracts/tests/test_kakarot_core.cairo @@ -203,7 +203,7 @@ fn test_kakarot_core_get_starknet_address() { } #[test] -fn test_eth_send_transaction_non_deploy_tx() { +fn test_eth_send_raw_transaction_non_deploy_tx() { // Given let (native_token, kakarot_core) = contract_utils::setup_contracts_for_testing(); @@ -249,7 +249,7 @@ fn test_eth_send_transaction_non_deploy_tx() { input: data_increment_counter }; - let (success, _, _) = kakarot_core.eth_send_transaction(Transaction::Legacy(tx)); + let (success, _, _) = kakarot_core.eth_send_raw_transaction(Transaction::Legacy(tx)); assert!(success); // Then @@ -300,7 +300,7 @@ fn test_eth_call() { #[test] -fn test_eth_send_transaction_deploy_tx() { +fn test_eth_send_raw_transaction_deploy_tx() { // Given let (native_token, kakarot_core) = contract_utils::setup_contracts_for_testing(); @@ -315,7 +315,8 @@ fn test_eth_send_transaction_deploy_tx() { let value = 0; // When - // Set the contract address to the EOA address, so that the caller of the `eth_send_transaction` + // Set the contract address to the EOA address, so that the caller of the + // `eth_send_raw_transaction` // is an eoa let tx = TxLegacy { chain_id: Option::Some(chain_id()), @@ -327,7 +328,7 @@ fn test_eth_send_transaction_deploy_tx() { input: deploy_counter_calldata() }; start_cheat_caller_address(kakarot_core.contract_address, eoa); - let (_, deploy_result, _) = kakarot_core.eth_send_transaction(Transaction::Legacy(tx)); + let (_, deploy_result, _) = kakarot_core.eth_send_raw_transaction(Transaction::Legacy(tx)); // Then let expected_address: EthAddress = 0x19587b345dcadfe3120272bd0dbec24741891759