stellar / rs-soroban-env

Rust environment for Soroban contracts.
Apache License 2.0
61 stars 42 forks source link

Fix internal error in get_module #1380

Closed sisuresh closed 6 months ago

sisuresh commented 6 months ago

What

get_module assumes the wasm blob was added to the module cache when it iterated over storage, but the wasm blob could be missing from storage if it wasn't included in the footprint. Return the same error we return today when the wasm blob is missing.

graydon commented 6 months ago

Added PR https://github.com/stellar/rs-soroban-env/pull/1382 which covers this more thoroughly. Closing in favor of it -- reopen if you disagree!