Skip to content

Commit

Permalink
fix: incorrect error message for getFeeForMessage (#28529)
Browse files Browse the repository at this point in the history
  • Loading branch information
jstarry authored Oct 21, 2022
1 parent 3a24350 commit eaafcf0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/connection.ts
Original file line number Diff line number Diff line change
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 eaafcf0

Please sign in to comment.