FuelLabs / fuels-rs

Fuel Network Rust SDK
https://fuellabs.github.io/fuels-rs
Apache License 2.0
44.37k stars 1.33k forks source link

feat: Support read only contract calls without owning coins #1405

Open MujkicA opened 1 month ago

MujkicA commented 1 month ago

Currently, calling simulate() on a contract instance requires a wallet that holds some coins. Those are needed for the transaction to be valid but are not spent otherwise. We can support read-only calls by attaching fake coins and simulating without utxo-validation.