Skip to content

Commit

Permalink
fix: incorrect error message for getFeeForMessage (solana-labs#28529)
Browse files Browse the repository at this point in the history
  • Loading branch information
jstarry authored and gnapoli23 committed Dec 16, 2022
1 parent bda16fa commit fda90e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web3.js/src/connection.ts
Expand Up @@ -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');
Expand Down

0 comments on commit fda90e8

Please sign in to comment.