Skip to content

Commit

Permalink
chore: updating teal.tok.map to teal.map extension
Browse files Browse the repository at this point in the history
  • Loading branch information
aorumbayev committed Oct 17, 2024
1 parent 6bd215a commit 6846550
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/algokit_utils/_debugging.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
TRACES_FILE_EXT = ".trace.avm.json"
DEBUG_TRACES_DIR = "debug_traces"
TEAL_FILE_EXT = ".teal"
TEAL_SOURCEMAP_EXT = ".teal.tok.map"
TEAL_SOURCEMAP_EXT = ".teal.map"


@dataclass
Expand Down
12 changes: 6 additions & 6 deletions tests/test_debug_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ def test_build_teal_sourcemaps(algod_client: "AlgodClient", tmp_path_factory: py

assert not (sourcemap_file_path).exists()
assert (app_output_path / "approval.teal").exists()
assert (app_output_path / "approval.teal.tok.map").exists()
assert (app_output_path / "approval.teal.map").exists()
assert (app_output_path / "clear.teal").exists()
assert (app_output_path / "clear.teal.tok.map").exists()
assert (app_output_path / "clear.teal.map").exists()


def test_build_teal_sourcemaps_without_sources(
Expand Down Expand Up @@ -93,11 +93,11 @@ def test_build_teal_sourcemaps_without_sources(

assert not (sourcemap_file_path).exists()
assert not (app_output_path / "approval.teal").exists()
assert (app_output_path / "approval.teal.tok.map").exists()
assert json.loads((app_output_path / "approval.teal.tok.map").read_text())["sources"] == []
assert (app_output_path / "approval.teal.map").exists()
assert json.loads((app_output_path / "approval.teal.map").read_text())["sources"] == []
assert not (app_output_path / "clear.teal").exists()
assert (app_output_path / "clear.teal.tok.map").exists()
assert json.loads((app_output_path / "clear.teal.tok.map").read_text())["sources"] == []
assert (app_output_path / "clear.teal.map").exists()
assert json.loads((app_output_path / "clear.teal.map").read_text())["sources"] == []


def test_simulate_and_persist_response_via_app_call(
Expand Down

0 comments on commit 6846550

Please sign in to comment.