Skip to content

Commit

Permalink
refactor: v2 updates
Browse files Browse the repository at this point in the history
  • Loading branch information
NotPeopling2day committed Dec 12, 2023
1 parent 474f337 commit 4a00ee9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions ape_foundry/provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -603,6 +603,10 @@ def send_call(
state: Optional[Dict] = None,
**kwargs,
) -> HexBytes:
if block_id is not None:
kwargs["block_identifier"] = block_id
if state is not None:
kwargs["state_override"] = state
skip_trace = kwargs.pop("skip_trace", False)
arguments = self._prepare_call(txn, **kwargs)

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"ape-polygon", # For running polygon fork tests
],
"lint": [
"black>=23.11.0,<24", # Auto-formatter and linter
"black>=23.12.0,<24", # Auto-formatter and linter
"mypy>=1.7.1,<2", # Static type analyzer
"types-setuptools", # Needed for mypy type shed
"types-requests", # Needed for mypy type shed
Expand Down
4 changes: 2 additions & 2 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,8 @@ def networks():
@pytest.fixture
def get_contract_type():
def fn(name: str) -> ContractType:
json_file = json.loads((LOCAL_CONTRACTS_PATH / f"{name}.json").read_text())
return ContractType.model_validate(json_file)
json_path = LOCAL_CONTRACTS_PATH / f"{name}.json"
return ContractType.model_validate_json(json_path.read_text())

return fn

Expand Down

0 comments on commit 4a00ee9

Please sign in to comment.