Skip to content

Commit 37464ad

Browse files
Merge pull request #29 from jcam1/develop
Release 2025-05-25 04:03:05 +0900
2 parents 13c28fc + 5c6fd52 commit 37464ad

File tree

6 files changed

+9
-7
lines changed

6 files changed

+9
-7
lines changed

packages/core/jpyc_core_sdk/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66
__version__ = version("jpyc-core-sdk")
77
__all__ = [
8-
# "__version__",
98
# client
109
"SdkClient",
1110
# jpyc

packages/core/jpyc_core_sdk/client.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
from eth_account.signers.local import LocalAccount
22
from pydantic import validate_call
33
from web3 import Account, HTTPProvider, Web3
4+
from web3._utils.empty import empty
45
from web3.middleware import (
56
ExtraDataToPOAMiddleware,
67
SignAndSendRawMiddlewareBuilder,
@@ -98,7 +99,7 @@ def __configure_w3(
9899
layer=0,
99100
)
100101
else:
101-
w3.eth.default_account = None # type: ignore[assignment]
102+
w3.eth.default_account = empty
102103

103104
return w3
104105

packages/core/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "jpyc-core-sdk"
3-
version = "1.0.3"
3+
version = "1.0.4"
44
requires-python = ">=3.12"
55
license = "MIT"
66
description = "A Python SDK for interacting with JPYCv2 contracts"

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "jpyc-python-sdks"
3-
version = "1.0.3"
3+
version = "1.0.4"
44
requires-python = ">=3.12"
55
description = "Python SDKs for JPYC protocols"
66
readme = "README.md"

tests/core/test_client.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
from pydantic import ValidationError
33
import pytest
44
from web3 import Web3
5+
from web3._utils.empty import empty
56

67
from packages.core.jpyc_core_sdk.client import SdkClient
78
from packages.core.jpyc_core_sdk.utils.chains import get_default_rpc_endpoint
@@ -78,6 +79,7 @@ def test_constructor(
7879
)
7980
if private_key is None:
8081
assert client.account is None
82+
assert client.w3.eth.default_account == empty
8183
else:
8284
assert isinstance(client.account, LocalAccount)
8385
assert client.account.address == address
@@ -242,7 +244,7 @@ def test_set_account(
242244
assert sdk_client.w3.eth.default_account == address
243245
else:
244246
assert account is None
245-
assert sdk_client.w3.eth.default_account is None
247+
assert sdk_client.w3.eth.default_account == empty
246248

247249

248250
def test_set_account_failures(sdk_client):

uv.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)