Skip to content
This repository has been archived by the owner on Dec 1, 2023. It is now read-only.

Add lite-mode #153

Merged
merged 17 commits into from
Aug 3, 2022
Merged

Add lite-mode #153

merged 17 commits into from
Aug 3, 2022

Conversation

andrew-fleming
Copy link
Contributor

This PR supercedes #144 and resolves #116.

Copy link
Contributor

@martriay martriay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good! Left some comments

README.md Outdated Show resolved Hide resolved
Comment on lines 24 to 25
([HOSTS[1], PORTS[1]], HOSTS[1], PORTS[1], None),
([HOSTS[1], PORTS[1], LITE], HOSTS[1], PORTS[1], LITE),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i’m not sure why these two lines use HOSTS[1], PORTS[1], and LITE as args. i guess they’re just placeholder values but if that's the case then it causes a bit of confusion. or do they serve a different purpose?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's to make sure that when these args are explicitly passed, it doesn't cause any issues with the command (like it did with --account_contract and disable_hint_validation in #150). I'll refactor to make it less confusing

Comment on lines 31 to 35

command = ["starknet-devnet", "--host", host, "--port", port]
if mode:
command.append(mode)
mock_subprocess.assert_called_once_with(command)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

aren't we testing args?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes! I think the weirdness of this test comes from checking the defaults (which differ from args except when explicitly set)

Co-authored-by: Martín Triay <[email protected]>
@andrew-fleming andrew-fleming marked this pull request as draft July 29, 2022 20:13
@andrew-fleming andrew-fleming marked this pull request as ready for review August 1, 2022 05:12
@martriay martriay merged commit e440468 into OpenZeppelin:main Aug 3, 2022
@andrew-fleming andrew-fleming deleted the add-lite-mode branch August 9, 2022 05:43
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add lite mode param to devnet
4 participants