Uh oh!
There was an error while loading. Please reload this page.
feat(py): configurable eth account wallet provider rpc_url - #474
Conversation
✅ Heimdall Review Status
|
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Per John's comment, chain = assignment will fail for a non-supported chainId.
However, chain is only used to get the rpc_url, which you are now passing in. Meaning, that line is now optional.
I think there's a cleaner way to write this that avoids the failure John is concerned about.
Something like:
rpc_url = config.rpc_url
if rpc_url is None:
chain = NETWORK_ID_TO_CHAIN[CHAIN_ID_TO_NETWORK_ID[config.chain_id]]
rpc_url = chain.rpc_urls["default"].http[0]
1551149 to
1a7059fCompare
CarsonRoscoe
left a comment
There was a problem hiding this comment.
This LGTM,
One last thing! @0xRAG wants to test out the new change log updates he's been making, and the Python side has just merged in.
I would generate a changelog file, so tomorrow he can test out consuming them and generating the "new" changelog.
Developer runs
poetry run towncrier createfrom the package folder with appropriate options to write a changelog entry
7f73d2a to
c6eb34bCompare
What changed?
enabling users to specify the rpc_url for the eth account wallet provider
Why was this change implemented?
Network support
Wallet support
Checklist
How has it been tested?
with invalid user defined rpc_url:
with valid user define rpc_url:
Notes to reviewers