From 58a55f438bec5b3fc1a479b464f86d7407a5c31b Mon Sep 17 00:00:00 2001 From: Sahilgat <38809578+Sahilgat@users.noreply.github.com> Date: Thu, 23 Mar 2023 15:57:15 +0800 Subject: [PATCH] [ribbon] Improve UNAUTHORIZED swap error description (#112) --- ribbon/ribbon/swap.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ribbon/ribbon/swap.py b/ribbon/ribbon/swap.py index ad5468a4..84e151f6 100644 --- a/ribbon/ribbon/swap.py +++ b/ribbon/ribbon/swap.py @@ -27,9 +27,9 @@ DETAILED_ERROR_MESSAGES = { "SIGNATURE_INVALID": "Signature invalid.", "UNAUTHORIZED": ( - "Signer address in bid not authorized by signatory. " - "Either ensure the signatory authorizes the signer wallet address. " - "Or ensure the signatory and signer wallet address is the same." + "Signer address in bid differs from signatory. " + "Either ensure the signer wallet has authorized signatory if using a delegate, " + "or ensure the signed message details are accurate." ), "NONCE_ALREADY_USED": "This nonce has been previously used.", "BID_TOO_SMALL": "Bid size has to be larger than minimum bid.",