From 49daa596c0d18a680556bca66342847b3e01a28c Mon Sep 17 00:00:00 2001 From: Justin Starry Date: Fri, 21 Oct 2022 09:50:10 +0800 Subject: [PATCH] fix: incorrect error message for getFeeForMessage (#28529) --- web3.js/src/connection.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web3.js/src/connection.ts b/web3.js/src/connection.ts index 7794cbf3e6..7b8dd0ef71 100644 --- a/web3.js/src/connection.ts +++ b/web3.js/src/connection.ts @@ -3831,7 +3831,7 @@ export class Connection { const res = create(unsafeRes, jsonRpcResultAndContext(nullable(number()))); if ('error' in res) { - throw new SolanaJSONRPCError(res.error, 'failed to get slot'); + throw new SolanaJSONRPCError(res.error, 'failed to get fee for message'); } if (res.result === null) { throw new Error('invalid blockhash');