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: enable Vec logging in contracts #898

Closed
iqdecay opened this issue Mar 22, 2023 · 2 comments
Closed

feat: enable Vec logging in contracts #898

iqdecay opened this issue Mar 22, 2023 · 2 comments
Assignees
Labels

Comments

@iqdecay
Copy link
Contributor

iqdecay commented Mar 22, 2023

No description provided.

@iqdecay iqdecay changed the title feat: Vec and Bytes logging feat: enable Vec logging in contracts Mar 22, 2023
@digorithm
Copy link
Member

Blocked by FuelLabs/sway#4497.

@hal3e hal3e self-assigned this Dec 13, 2023
hal3e added a commit that referenced this issue Jan 29, 2024
closes: #1247,
#1151,
#901,
#898

This PR adds support for sway's experimental encoding in logs. The new
encoder is enabled with the `experimental` rustflag.

To run the tests, first build the forc projects with: 
`forc build --path packages/fuels --experimental-new-encoding` then run
the tests with:
 `RUSTFLAGS='--cfg experimental' cargo test --test logs`
 
 What was done:
 - added `ExperimentalBoundedDecoder`
 - updated how `RawSlice` was  encoded and decoded
 - added tests for the new encoding
 - add new CI step that runs tests with the new `experimental` flag
 
 BREAKING CHANGE:
 - change `RawSlice` encoding and decoding
@hal3e
Copy link
Contributor

hal3e commented Feb 20, 2024

This issue is resolved in #1259

@hal3e hal3e closed this as completed Feb 20, 2024
ak-tech007 added a commit to ak-tech007/Rust-SDK that referenced this issue Dec 6, 2024
closes: FuelLabs/fuels-rs#1247,
FuelLabs/fuels-rs#1151,
FuelLabs/fuels-rs#901,
FuelLabs/fuels-rs#898

This PR adds support for sway's experimental encoding in logs. The new
encoder is enabled with the `experimental` rustflag.

To run the tests, first build the forc projects with: 
`forc build --path packages/fuels --experimental-new-encoding` then run
the tests with:
 `RUSTFLAGS='--cfg experimental' cargo test --test logs`
 
 What was done:
 - added `ExperimentalBoundedDecoder`
 - updated how `RawSlice` was  encoded and decoded
 - added tests for the new encoding
 - add new CI step that runs tests with the new `experimental` flag
 
 BREAKING CHANGE:
 - change `RawSlice` encoding and decoding
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants