ava-labs / hypersdk

Opinionated Framework for Building Hyper-Scalable Blockchains on Avalanche
https://hypersdk.xyz/
Other
193 stars 100 forks source link

HyperSDK native errors #1291

Open samliok opened 1 month ago

samliok commented 1 month ago

Many of our errors depend on avalanchego such as database.ErrNotFound. Would be useful to create a common set of hypersdk errors that we can reference in all parts of the code(runtime, simulator, wasm, etc...)

samliok commented 1 month ago

https://github.com/ava-labs/hypersdk/pull/1205#discussion_r1714012111

even more, we shouldn't hardcode errors like this in the simulator