Runtime error: wasm async call execution failed with error: PrepareError("Gas instrumentation failed.") #1344
Labels
A-transaction-runtime
Area: transaction runtime (transaction and receipts processing, state transition, etc)
Milestone
See nearprotocol/assemblyscript#73 for context
When floats are detected error should be explicit about floats. Same goes for any other banned instruction type. Parity's gas metering injection code is relatively easy to fix to return specific error instead of general one.
it should be possible to return detailed error from here:
https://github.com/paritytech/wasm-utils/blob/c9cdef4c517b4da997d8ed518575a5524b3f3a86/src/rules.rs#L294
looks like https://github.com/paritytech/wasm-utils/blob/c9cdef4c517b4da997d8ed518575a5524b3f3a86/src/rules.rs#L308 tracks instruction types
The text was updated successfully, but these errors were encountered: