handle status code -4 in the getRaw method of the JsonRpc2Client

This commit is contained in:
Bernhard B 2026-07-23 22:51:35 +02:00
parent 6a225e62c1
commit 54507eba20

View File

@ -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)
}