You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
All transactions to a contract that has been initialized with configurables seem to fail. In the reproduction you can see that I am trying to call a pure function _proxy_pure_fn that is supposed to return 255.
In the test file, there are two functions test_with_configurables and test_without_configurables whose only difference is:
let configurables = MyContractConfigurables::default().with_INITIAL_OWNER(State::Initialized(wallet.address().into())).unwrap().with_INITIAL_TARGET(ContractId::from_str("deadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeef").unwrap()).unwrap();// With configurables:let load_configuration = LoadConfiguration::default().with_configurables(configurables);// Without configurables:let load_configuration = LoadConfiguration::default();
closes: FuelLabs/fuels-rs#1475
### Checklist
- [x] I have linked to any relevant issues.
- [x] I have added necessary labels.
- [x] I have done my best to ensure that my PR adheres to [the Fuel Labs
Code Review
Standards](https://github.com/FuelLabs/rfcs/blob/master/text/code-standards/external-contributors.md).
- [x] I have requested a review from the relevant team or maintainers.
Co-authored-by: Ahmed Sagdati <37515857+segfault-magnet@users.noreply.github.com>
Reproduction: https://github.com/DefiCake/fuels-rs-65-configurables-issue
To run:
forc build && cargo test
All transactions to a contract that has been initialized with configurables seem to fail. In the reproduction you can see that I am trying to call a pure function
_proxy_pure_fn
that is supposed to return255
.Function definition:
https://github.com/DefiCake/fuels-rs-65-configurables-issue/blob/db85be605137a197d9979dc8b401b35a5839c443/src/main.sw#L103
Call in the tests:
https://github.com/DefiCake/fuels-rs-65-configurables-issue/blob/db85be605137a197d9979dc8b401b35a5839c443/tests/harness.rs#L131
In the test file, there are two functions
test_with_configurables
andtest_without_configurables
whose only difference is:UPDATE. It seems the issue revolves around
Removing this specific configurable also makes the test pass
The text was updated successfully, but these errors were encountered: