Skip to content

Commit

Permalink
near-vm-runner: move protocol-sensitive error schemas to near-primiti…
Browse files Browse the repository at this point in the history
…ves (#9295)

This allows to drop a dependency on `near-account-id` and `near-rpc-error-macro` crates and brings us ever-so-slightly closer to having a contract runtime suitable for limited replayability.

But more importantly this also solves a long-term pain point in the contract runtime where we never really felt too confident modifying errors that are output from the contract runtime due to our fears about it possibly affecting the protocol output. Now that the schemas are outside of `nearcore/runtime` there's also a neat rule of thumb: anything goes inside `nearcore/runtime` (as far as errors are concerned.)
  • Loading branch information
nagisa authored and nikurt committed Jul 20, 2023
1 parent d36b1c3 commit de0d9ba
Show file tree
Hide file tree
Showing 11 changed files with 815 additions and 604 deletions.
2 changes: 0 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit de0d9ba

Please sign in to comment.