Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat!: deprecate multiple encoding version support for configurable constants #2040

Merged
merged 10 commits into from
Apr 11, 2024

Conversation

danielbate
Copy link
Contributor

@danielbate danielbate commented Apr 11, 2024

Relates to #1672.

I had incorrectly assumed that configurable constants were included for v1 encoding. They are currently unsupported.

This PR removes support at the encoding entry point for configurables, and introduces a test that includes both v0 configurable encoding and v1 param encoding.

Breaking change:
Configurable constants are no longer being parsed using experimental encoding when programs are built using the --experimental-new-encoding. Therefore programs built using experimental encoding, will use different schemes for arguments and configurables. This will only impact consumers if they are instantiating coders directly.

@danielbate danielbate added feat Issue is a feature mainnet labels Apr 11, 2024
@danielbate danielbate self-assigned this Apr 11, 2024
@danielbate danielbate changed the title feat!: deprecate v1 support for configurables feat!: deprecate multiple encoding version support for configurable constants Apr 11, 2024
@fuel-service-user
Copy link
Contributor

fuel-service-user commented Apr 11, 2024

✨ A PR has been created under the rc-2040 tag on fuels-wallet repo.
FuelLabs/fuels-wallet#1232

arboleya
arboleya previously approved these changes Apr 11, 2024
packages/abi-coder/src/Interface.ts Show resolved Hide resolved
packages/fuel-gauge/src/utils.ts Outdated Show resolved Hide resolved
Co-authored-by: Anderson Arboleya <anderson@arboleya.me>
Copy link
Contributor

@petertonysmith94 petertonysmith94 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🍏

@danielbate danielbate requested a review from arboleya April 11, 2024 10:45
@danielbate danielbate enabled auto-merge (squash) April 11, 2024 10:52
Copy link
Contributor

Coverage Report:

Lines Branches Functions Statements
79.37%(+0%) 69.7%(+0%) 77.33%(+0%) 79.52%(+0%)
Changed Files:

Coverage values did not change👌.

@danielbate danielbate merged commit b51dc5e into master Apr 11, 2024
15 checks passed
@danielbate danielbate deleted the db/feat/deprecate-v1-configurables branch April 11, 2024 11:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat Issue is a feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants