Skip to content

Commit

Permalink
Fix typo getting accountId in JSON-RPC handleError
Browse files Browse the repository at this point in the history
  • Loading branch information
vgrichina committed Feb 13, 2024
1 parent 71ddbe7 commit 7e46393
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion json-rpc.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ const ALWAYS_PROXY = ['yes', 'true'].includes((process.env.FAST_NEAR_ALWAYS_PROX
const handleError = async ({ ctx, blockHeight, error }) => {
debug('handleError', error);
const { body } = ctx.request;
const accountId = error.accountId;
const accountId = error.data?.accountId;

// TODO: Match error handling? Structured errors? https://docs.near.org/docs/api/rpc/contracts#what-could-go-wrong-6
const message = error.toString();
Expand Down

0 comments on commit 7e46393

Please sign in to comment.