Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change way of setting token_addres #1295

Closed

Conversation

tkumor3
Copy link
Contributor

@tkumor3 tkumor3 commented Feb 19, 2024

Closes #1264

Introduced changes

  • This PR contains breaking changes

self._token_address = token_address
else:
if hasattr(signer, "chain_id"):
self._token_address = default_token_address_for_chain(signer.chain_id) # type: ignore
Copy link
Contributor Author

Choose a reason for hiding this comment

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

check if there is a better solution # type: ignore

@tkumor3 tkumor3 marked this pull request as draft February 19, 2024 10:56
@tkumor3 tkumor3 removed the request for review from ddoktorski February 19, 2024 10:57
Copy link

codecov bot commented Feb 19, 2024

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (f992bc8) 97.99% compared to head (ccce5f0) 97.91%.

Additional details and impacted files
@@               Coverage Diff               @@
##           development    #1295      +/-   ##
===============================================
- Coverage        97.99%   97.91%   -0.09%     
===============================================
  Files               90       90              
  Lines             4597     4598       +1     
===============================================
- Hits              4505     4502       -3     
- Misses              92       96       +4     
Files Coverage Δ
starknet_py/net/account/base_account.py 100.00% <100.00%> (ø)
starknet_py/net/models/chains.py 90.47% <100.00%> (-3.28%) ⬇️
starknet_py/net/networks.py 100.00% <ø> (ø)
starknet_py/net/account/account.py 99.18% <87.50%> (-0.41%) ⬇️

... and 2 files with indirect coverage changes

@tkumor3 tkumor3 closed this Feb 21, 2024
@tkumor3 tkumor3 deleted the tomaszkumor/token_address_custom_network branch February 21, 2024 14:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use union of chain and strring for custom networks
1 participant