-
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
Update SDK for Sway's change to use IR by default. #201
Labels
Comments
3 tasks
digorithm
added
enhancement
New feature or request
big
and removed
bug
Something isn't working
labels
Apr 5, 2022
Note: this is momentarily blocked by FuelLabs/sway#1146. |
This was referenced Apr 5, 2022
|
I think the design we want now is to actually keep the special casing for small struct args but use the newer 'by-type |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Sway is switching to use IR by default here: FuelLabs/sway#1130
Contract calls are slightly different compared to current Sway -- user args are always wrapped in a struct, even if there is only one. This is a bit more consistent and disregards the need for special casing.
Also, values are returned from a contract call via
RET
orRETD
based now on the value type, not size.unit
,bool
,byte
andu64
are 'copy' types returned viaRET
, otherwiseRETD
is used.The text was updated successfully, but these errors were encountered: