FuelLabs / fuels-rs

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

refactor: remove `provider` from `ScriptCallHandler` #1391

Closed hal3e closed 1 month ago

hal3e commented 1 month ago

Removed provider from ScriptCallHandler. The provider can be accessed from the account the same way we do in ContractCallHandlers.

Another benefit is that we will not panic when initializing a new script instance if the provider is not set up.

Checklist

Br1ght0ne commented 1 month ago

I think the clippy lint is confusing, and should be #[allow]ed here.