Skip to content

Commit 8e2d5d9

Browse files
committed
adjust make payment and deliver job flow
1 parent 2578b04 commit 8e2d5d9

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

plugins/acp/acp_plugin_gamesdk/acp_client.py

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -114,19 +114,9 @@ def make_payment(self, job_id: int, amount: float, memo_id: int, reason: str):
114114

115115
tx_hash = self.acp_token.set_budget(job_id, amount_wei)
116116
approval_tx_hash = self.acp_token.approve_allowance(amount_wei)
117-
signed_memo_tx_hash = self.acp_token.sign_memo(memo_id, True, reason)
118-
119-
return self.acp_token.create_memo(
120-
job_id=job_id,
121-
content=f"Payment of {amount} made. {reason}",
122-
memo_type=MemoType.MESSAGE,
123-
is_secured=False,
124-
next_phase=AcpJobPhases.EVALUATION
125-
)
117+
return self.acp_token.sign_memo(memo_id, True, reason)
126118

127119
def deliver_job(self, job_id: int, deliverable: str, memo_id: int, reason: str):
128-
tx_hash = self.acp_token.sign_memo(memo_id, True, reason)
129-
130120
return self.acp_token.create_memo(
131121
job_id=job_id,
132122
content=deliverable,

0 commit comments

Comments
 (0)