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

Support starknet token for mainnet deployments #263

Merged

Conversation

ericnordelo
Copy link
Member

No description provided.

@ericnordelo ericnordelo linked an issue Oct 25, 2022 that may be closed by this pull request
@CryptoIndonesia27
Copy link

🐋🐋🐋🐋🐋🐋

Copy link
Contributor

@andrew-fleming andrew-fleming left a comment

Choose a reason for hiding this comment

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

Looks great, @ericnordelo! I left a few suggestions (basically just one thing)

README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
src/nile/cli.py Outdated Show resolved Hide resolved
ericnordelo and others added 3 commits October 31, 2022 22:07
Co-authored-by: Andrew Fleming <[email protected]>
Co-authored-by: Andrew Fleming <[email protected]>
Co-authored-by: Andrew Fleming <[email protected]>
andrew-fleming
andrew-fleming previously approved these changes Oct 31, 2022
Copy link
Contributor

@andrew-fleming andrew-fleming left a comment

Choose a reason for hiding this comment

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

Looks good to me!

martriay
martriay previously approved these changes Nov 2, 2022
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.

great addition!

Comment on lines 17 to 26
@pytest.mark.only
@pytest.mark.parametrize(
"operation, signature, max_fee, query_flag, mainnet_token",
[
("invoke", None, 0, "simulate", None),
("call", None, None, None, None),
("deploy", None, 5, None, "token"),
("declare", None, 3, "estimate_fee", "token2"),
],
)
Copy link
Contributor

Choose a reason for hiding this comment

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

have you considered doing all permutations? or is it too slow?

Suggested change
@pytest.mark.only
@pytest.mark.parametrize(
"operation, signature, max_fee, query_flag, mainnet_token",
[
("invoke", None, 0, "simulate", None),
("call", None, None, None, None),
("deploy", None, 5, None, "token"),
("declare", None, 3, "estimate_fee", "token2"),
],
)
@pytest.mark.parametrize('operation', ['invoke', 'call', 'deploy', 'declare'])
@pytest.mark.parametrize('signature', [None])
...

Copy link
Member Author

Choose a reason for hiding this comment

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

I think that's a great idea! If I add this, it won't be too slow, but I'm not sure what will happen if we adopt this for all the tests. If this makes the test suite too slow in the future, we can refactor this then, I guess. I will add it.

@ericnordelo ericnordelo requested review from martriay and andrew-fleming and removed request for andrew-fleming November 3, 2022 14:43
Copy link
Contributor

@andrew-fleming andrew-fleming left a comment

Choose a reason for hiding this comment

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

The test looks good!

@martriay martriay merged commit e0669c7 into OpenZeppelin:main Nov 3, 2022
@ericnordelo ericnordelo deleted the feat/support-token-option-#239 branch November 3, 2022 22:47
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.

Support --token flag for deploy
4 participants