FuelLabs / fuels-rs

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

`setup_program_test` is unhygenic #1376

Closed segfault-magnet closed 4 months ago

segfault-magnet commented 4 months ago

Issues ranging from the use of ::rand (i.e. cannot call the macro if you don't have the dep) to assuming fuels types are imported in the macro scope.

::rand (and other deps if applicable) should either be reexported (research risks to semver breaking changes) or any call to them should be delegated to a fn exported in fuels so that the rand dep is hidden behind the fn call.

Make sure to remove rand from the e2e tests Cargo.toml once finished.