generated from ApeWorX/project-template
-
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: support hex str selector and fix typing issues (#53)
- Loading branch information
Showing
9 changed files
with
202 additions
and
117 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
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,23 @@ | ||
import json | ||
from pathlib import Path | ||
|
||
import pytest | ||
|
||
from ethpm_types import PackageManifest | ||
|
||
|
||
@pytest.fixture | ||
def oz_package_manifest_dict(): | ||
oz_manifest_file = Path(__file__).parent / "data" / "OpenZeppelinContracts.json" | ||
return json.loads(oz_manifest_file.read_text()) | ||
|
||
|
||
@pytest.fixture | ||
def oz_package(oz_package_manifest_dict): | ||
return PackageManifest.parse_obj(oz_package_manifest_dict) | ||
|
||
|
||
@pytest.fixture | ||
def oz_contract_type(oz_package): | ||
# NOTE: AccessControl has events, view methods, and mutable methods. | ||
return oz_package.contract_types["AccessControl"] |
Oops, something went wrong.