risc0 / risc0-ethereum

Integration of the RISC Zero verifiable compute platform with Ethereum and EVM chains.
https://risczero.com
Apache License 2.0
61 stars 15 forks source link

Forgetting to run `Contract::preflight` results in difficult to debug error #224

Closed nategraf closed 4 days ago

nategraf commented 1 week ago

An application developer using Steel ran into an issue when using Steel when they forgot to run Contract::preflight on the host. It is expected that this will result in a failure. However the following assert was what caught the issue, and they had a very difficult time debugging it.

https://github.com/risc0/risc0-ethereum/blob/8dc728708a866e9b1a1bf7cb83f507c1929199b4/steel/src/block.rs#L35

It is likely this will be a common error, and so we should make it easier to figure out how to fix it.

linear[bot] commented 1 week ago

WEB3-107 Forgetting to run `Contract::preflight` results in difficult to debug error