-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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: bump forc
to 0.46.0
#1148
Conversation
Closes #1113 Bundles relevant NodeInfo and ChainInfo field to NetworkInfo so that it can be provided to a tx builder. The builder is then able to use default values for unset tx parameters. --------- Co-authored-by: hal3e <git@hal3e.io>
2b7ba08
to
aa5e081
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Amazing work, @hal3e! Please create these follow-up issues when you can.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just 1 question regarding setup_test_program
macro
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚢 it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should probably do two more things (ideally) in this PR:
- Have an e2e test for string slices since forc 0.46 effectively puts them in the spotlight
- Fail to decode nested string slices as they behave just like
raw_slice
does. I.e. when they are top-level then the data is inlined, otherwise, you get aptr,len
.
For the second point you might find changes made here to be useful (precisely I mean the wording change from 'is heap type' to 'needs extra receipt' since string slices are heap types, but don't behave like others in the sense we need extra receipts for them.
You can either handle it here or in subsequent tasks. I am approving the PR. Good job :)
Edit:
Don't actually know what our error will be if we nest string slices, I have a feeling due to all the edge cases currently present in master that it might be an unpleasant surprise.
Good point @segfault-magnet. Let's wait for #1106 to get merged so that I can use the new code. I will then add the tests. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
close: #1139, #1134
I took this over from @segfault-magnet. Most of the work was done by him.
AssetId
is now mapped tofuels::types::AssetId
inabigen!
.forc 0.46.0
uses string slices as default and logging them does not work. An error was added to indicate what to do in this case. Hopefully, we can delete this code once Improving slice sway#5110 is resolved.If this PR is approved, I will create two issues for the TODO items.
Checklist