sui
sui copied to clipboard
Fix: Return None instead of passing Error
Description
Fix https://github.com/MystenLabs/sui/issues/10974
trace:
sui/crates/sui-json-rpc/src/transaction_execution_api.rs
-> execute_transaction_block
-> get_balance_changes_from_effect
-> get_balance_changes
-> fetch_coins
-> get_object
-> get_past_object_read
root cause: the state on the chain has changed, but the database has not been updated.
Test Plan
How did you test the new or updated feature?
If your changes are not user-facing and not a breaking change, you can skip the following section. Otherwise, please indicate what changed, and then add to the Release Notes section as highlighted during the release process.
Type of Change (Check all that apply)
- [ ] user-visible impact
- [ ] breaking change for a client SDKs
- [ ] breaking change for FNs (FN binary must upgrade)
- [ ] breaking change for validators or node operators (must upgrade binaries)
- [ ] breaking change for on-chain data layout
- [ ] necessitate either a data wipe or data migration
Release notes
The latest updates on your projects. Learn more about Vercel for Git ↗︎
https://github.com/MystenLabs/sui/pull/11466/files