Skip to content

Commit 398241f

Browse files
authored
Merge pull request #156 from Virtual-Protocol/fix/yang-deliverable-hotfix
fix: get deliverable from job instead of raw data
2 parents 8d7d124 + 25654f2 commit 398241f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "virtuals-acp"
3-
version = "0.3.22"
3+
version = "0.3.23"
44
description = "Agent Commerce Protocol Python SDK by Virtuals"
55
authors = ["Steven Lee Soon Fatt <steven@virtuals.io>"]
66
readme = "README.md"

virtuals_acp/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -890,7 +890,7 @@ def get_job_by_onchain_id(self, onchain_job_id: int) -> "ACPJob":
890890
context=context,
891891
contract_address=job.get("contractAddress"),
892892
net_payable_amount=job.get("netPayableAmount"),
893-
deliverable=data.get("deliverable"),
893+
deliverable=job.get("deliverable"),
894894
)
895895
except Exception as e:
896896
raise ACPApiError(f"Failed to get job by onchain ID: {e}")

0 commit comments

Comments
 (0)