File tree Expand file tree Collapse file tree
agentscore_commerce/challenge Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ def build_402_body(
102102 if agent_memory is not None :
103103 # AgentMemoryHint is a dataclass; merchants pass it directly via
104104 # first_encounter_agent_memory(...). Convert here so JSONResponse /
105- # json.dumps can serialise without per-merchant boilerplate.
105+ # json.dumps can serialize without per-merchant boilerplate.
106106 body ["agent_memory" ] = (
107107 asdict (agent_memory ) if is_dataclass (agent_memory ) and not isinstance (agent_memory , type ) else agent_memory
108108 )
Original file line number Diff line number Diff line change @@ -331,7 +331,7 @@ class _Verified:
331331
332332 async def settle_payment (self , _payload : Any , _requirement : Any ) -> Any :
333333 # ProcessX402Settle treats a falsy success as a settle_failed phase via the
334- # exception raised by settle_result_to_json_bytes when it tries to serialise
334+ # exception raised by settle_result_to_json_bytes when it tries to serialize
335335 # an empty dict, so we shape the response as a plain JSON-serializable dict.
336336 if not self .settle_success :
337337 raise RuntimeError ("settle rejected" )
You can’t perform that action at this time.
0 commit comments