Skip to content

Commit 000e4c1

Browse files
committed
chore: bumping hedera proto
Signed-off-by: exploreriii <[email protected]>
1 parent 9cab3c6 commit 000e4c1

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/hiero_sdk_python/tokens/token_wipe_transaction.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ def _get_method(self, channel: _Channel) -> _Method:
152152

153153
def _from_proto(
154154
self,
155-
proto: token_wipe_account_pb2.TokenWipeAccountTransactionBody
155+
proto: TokenWipeAccountTransactionBody
156156
) -> "TokenWipeTransaction":
157157
"""
158158
Deserializes a TokenWipeAccountTransactionBody from a protobuf object.

tests/unit/test_executable.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -382,6 +382,9 @@ def test_topic_create_transaction_fails_on_nonretriable_error():
382382
PrecheckError, match="failed precheck with status: INVALID_TRANSACTION_BODY"
383383
):
384384
tx.execute(client)
385+
386+
# Verify the error contains the expected status
387+
assert f"{ResponseCode.INVALID_TRANSACTION_BODY.name} ({ResponseCode.INVALID_TRANSACTION_BODY.value})" in str(exc_info.value)
385388

386389
def test_transaction_node_switching_body_bytes():
387390
"""Test that execution switches nodes after receiving a non-retriable error."""

0 commit comments

Comments
 (0)