-
Notifications
You must be signed in to change notification settings - Fork 76
Support starknet token for mainnet deployments #263
Support starknet token for mainnet deployments #263
Conversation
🐋🐋🐋🐋🐋🐋 |
There was a problem hiding this 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)
Co-authored-by: Andrew Fleming <[email protected]>
Co-authored-by: Andrew Fleming <[email protected]>
Co-authored-by: Andrew Fleming <[email protected]>
There was a problem hiding this 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!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
great addition!
tests/test_common.py
Outdated
@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"), | ||
], | ||
) |
There was a problem hiding this comment.
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?
@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]) | |
... |
There was a problem hiding this comment.
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.
…lo/nile into feat/support-token-option-#239
…-token-option-#239
92afae4
There was a problem hiding this 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!
No description provided.