From 54507eba20904238dd4db8056b4529bd3199dbd2 Mon Sep 17 00:00:00 2001 From: Bernhard B Date: Thu, 23 Jul 2026 22:51:35 +0200 Subject: [PATCH] handle status code -4 in the `getRaw` method of the JsonRpc2Client --- src/client/jsonrpc2.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/client/jsonrpc2.go b/src/client/jsonrpc2.go index ef00633..94307cd 100644 --- a/src/client/jsonrpc2.go +++ b/src/client/jsonrpc2.go @@ -186,6 +186,8 @@ func (r *JsonRpc2Client) getRaw(command string, account *string, args interface{ ChallengeTokens: challengeTokens, Err: errors.New(resp.Err.Message), } + } else if resp.Err.Code == -4 { + return "", errors.New("Unable to complete request due to untrusted recipient keys") } return "", errors.New(resp.Err.Message) }