Skip to content

Commit

Permalink
Merge pull request #112 from HerodotusDev/fix/bootloader_path
Browse files Browse the repository at this point in the history
chore: update bootloader import path
  • Loading branch information
petscheit authored Dec 6, 2024
2 parents 3a886bc + 07e3340 commit 4e1e947
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/contract_bootloader/contract.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func compute_contract{
// Fetch contract data form hints.
%{
from starkware.starknet.core.os.contract_class.compiled_class_hash import create_bytecode_segment_structure
from src.contract_bootloader.contract_class.compiled_class_hash_utils import get_compiled_class_struct
from contract_bootloader.contract_class.compiled_class_hash_utils import get_compiled_class_struct
bytecode_segment_structure = create_bytecode_segment_structure(
bytecode=compiled_class.bytecode,
Expand Down
4 changes: 2 additions & 2 deletions src/contract_bootloader/contract_dry_run.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ func main{
// Fetch contract data form hints.
%{
from starkware.starknet.core.os.contract_class.compiled_class_hash import create_bytecode_segment_structure
from src.contract_bootloader.contract_class.compiled_class_hash_utils import get_compiled_class_struct
from contract_bootloader.contract_class.compiled_class_hash_utils import get_compiled_class_struct
bytecode_segment_structure = create_bytecode_segment_structure(
bytecode=compiled_class.bytecode,
Expand Down Expand Up @@ -104,7 +104,7 @@ func main{
local pow2_array: felt* = nondet %{ segments.add() %};

%{
from src.contract_bootloader.dryrun_syscall_handler import DryRunSyscallHandler
from contract_bootloader.dryrun_syscall_handler import DryRunSyscallHandler
if '__dict_manager' not in globals():
from starkware.cairo.common.dict import DictManager
Expand Down
2 changes: 1 addition & 1 deletion src/contract_bootloader/dryrun_syscall_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Dict,
Iterable,
)
from src.contract_bootloader.dryrun_syscall_memorizer_handler.starknet.header_handler import (
from contract_bootloader.dryrun_syscall_memorizer_handler.starknet.header_handler import (
DryRunStarknetHeaderHandler,
)
from starkware.cairo.lang.vm.relocatable import RelocatableValue, MaybeRelocatable
Expand Down
2 changes: 1 addition & 1 deletion src/contract_bootloader/execute_entry_point.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ func execute_entry_point{

%{
if 'syscall_handler' not in globals():
from src.contract_bootloader.syscall_handler import SyscallHandler
from contract_bootloader.syscall_handler import SyscallHandler
if '__dict_manager' not in globals():
from starkware.cairo.common.dict import DictManager
__dict_manager = DictManager()
Expand Down
2 changes: 1 addition & 1 deletion tools/make/full_flow_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ cairo-compile --cairo_path="packages/eth_essentials" "src/hdp.cairo" --output "b

# Clone the repository if the directory doesn't exist
if [ ! -d "hdp-test" ]; then
git clone https://github.com/HerodotusDev/hdp-test && cd hdp-test && git checkout starknet && cd ..
git clone https://github.com/HerodotusDev/hdp-test
fi
echo "Starting tests..."
# Use find to locate all input.json files in hdp-test/fixtures directory and run them in parallel
Expand Down
6 changes: 3 additions & 3 deletions tools/py/providers/evm/test_evm_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@
)
from tools.py.types.evm.receipt import Receipt
import rlp
import os


@pytest.fixture
def evm_provider():
return EvmProvider(
"https://mainnet.infura.io/v3/66dda5ed7d56432a82c8da4ac54fde8e", 1
)
RPC_URL = os.getenv("RPC_URL_MAINNET")
return EvmProvider(RPC_URL, 1)


def test_legacy_header(evm_provider):
Expand Down

0 comments on commit 4e1e947

Please sign in to comment.