generated from ApeWorX/project-template
-
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix: added provider chain_id * fix: provide chain ID value * fix: self._web3 and #type:ignore for mypy line 28 * fix: comma instead of dot * fix: updated chain_id to @Property * chore: upgrade version of ape core; drop support for Python 3.6 * lint: fixup isort * test: add test to show provider functions and is integrated Co-authored-by: El De-dog-lo <3859395+fubuloubu@users.noreply.github.com>
- Loading branch information
1 parent
fce517e
commit 355e24d
Showing
4 changed files
with
18 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
from ape import networks | ||
|
||
from ape_infura.providers import Infura | ||
|
||
|
||
def test_provider_works(): | ||
with networks.ethereum.mainnet.use_provider("infura") as provider: | ||
assert isinstance(provider, Infura) | ||
assert provider.get_balance("0x0000000000000000000000000000000000000000") > 0 |