Skip to content

Commit

Permalink
docs: update RPC error schema update process
Browse files Browse the repository at this point in the history
This commit updates the README description for how to
update to a new RPC error schema.

I also delete two files in near-api-js which seem to be unused.
The source of truth, as far as I can tell, is in the utils package now.
  • Loading branch information
jakmeier committed Jul 22, 2024
1 parent 8888668 commit b96d14d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 937 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,11 @@ Tests use sample contract from `near-hello` npm package, see https://github.com/

Follow next steps:

1. [Change hash for the commit with errors in the nearcore](https://github.com/near/near-api-js/blob/master/fetch_error_schema.js#L8-L9)
1. [Optionally, set a specific hash for the commit with errors in the nearcore](https://github.com/near/near-api-js/blob/master/packages/utils/fetch_error_schema.js#L4-L5)
2. Fetch new schema: `node fetch_error_schema.js`
3. `pnpm build` to update `lib/**.js` files
3. `pnpm build` and `pnpm test` to check tests still work
4. `pnpm changeset` to generate a changeset with a minor bump for the @near-js/utils package
5. commit all changes and submit a PR on GitHub

## Packages

Expand Down
Loading

0 comments on commit b96d14d

Please sign in to comment.