From ec776d630247c8d8dc3841aa4b4d4d9881c2de6a Mon Sep 17 00:00:00 2001 From: shaangill025 Date: Wed, 15 Jun 2022 10:40:07 -0700 Subject: [PATCH] present-proof v1 proposal fix Signed-off-by: shaangill025 --- .../v1_0/handlers/presentation_request_handler.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/aries_cloudagent/protocols/present_proof/v1_0/handlers/presentation_request_handler.py b/aries_cloudagent/protocols/present_proof/v1_0/handlers/presentation_request_handler.py index cbd01a8cec..1736d22843 100644 --- a/aries_cloudagent/protocols/present_proof/v1_0/handlers/presentation_request_handler.py +++ b/aries_cloudagent/protocols/present_proof/v1_0/handlers/presentation_request_handler.py @@ -80,6 +80,10 @@ async def handle(self, context: RequestContext, responder: BaseResponder): "connection_id": connection_id, }, ) # holder initiated via proposal + presentation_exchange_record.presentation_request = indy_proof_request + presentation_exchange_record.presentation_request_dict = ( + context.message.serialize() + ) except StorageNotFoundError: # verifier sent this request free of any proposal presentation_exchange_record = V10PresentationExchange( connection_id=connection_id, @@ -94,7 +98,6 @@ async def handle(self, context: RequestContext, responder: BaseResponder): trace=(context.message._trace is not None), ) - presentation_exchange_record.presentation_request = indy_proof_request presentation_exchange_record = await presentation_manager.receive_request( presentation_exchange_record ) # mgr only saves record: on exception, saving state null is hopeless