ava-labs / hypersdk

Opinionated Framework for Building Hyper-Scalable Blockchains on Avalanche
Other
203 stars 111 forks source link

[x/programs] Graceful handling of Traps (example out of gas) #517

Open hexfusion opened 1 year ago

hexfusion commented 1 year ago

The current errors returned by traps leak more information than we probably want. We can keep that verboseness for debug logging but instead should convert traps to the corresponding codes. We will need to wait for the next release to handle OutOfFuel[1].

[1] https://github.com/bytecodealliance/wasmtime-go/pull/193

hexfusion commented 1 year ago

This is a bug in wasmtime where OutofFuel is not properly mapped as of v14

github-actions[bot] commented 10 months ago

This issue has become stale because it has been open 60 days with no activity. Adding the lifecycle/frozen label will exempt this issue from future lifecycle events.