diff --git a/web3.js/src/connection.ts b/web3.js/src/connection.ts index 7794cbf3e65225..7b8dd0ef71ac04 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');