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: support heap types return from scripts #866

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

feat: support heap types return from scripts #866

iqdecay opened this issue Mar 2, 2023 · 4 comments
Assignees
Labels
blocked epic An epic is a high-level master issue for large pieces of work.

Comments

@iqdecay
Copy link
Contributor

iqdecay commented Mar 2, 2023

#848 introduced Vec<> type return from contracts, the same should be done for scripts.
#868 introduced Bytes type return from contracts, the same should be done for scripts.

@iqdecay iqdecay self-assigned this Mar 2, 2023
@iqdecay iqdecay changed the title feat: support Vec<> type return from scripts feat: support heap types return from scripts Mar 22, 2023
@iqdecay iqdecay mentioned this issue Mar 22, 2023
7 tasks
@iqdecay
Copy link
Contributor Author

iqdecay commented Aug 28, 2023

This is currently blocked because returning heap-type data from contract calls is possible only because we are injecting additional bytecode in the script that calls the contract. Since in script calls there is no "calling script", this is not currently possible. We need support for heap types from the compiler.

@Dhaiwat10
Copy link
Member

@iqdecay we need to implement this on the TS SDK, too. Can you pls share any issues that you are tracking on the compiler so that we know when the support is there?

@iqdecay
Copy link
Contributor Author

iqdecay commented Sep 12, 2023

There currently isn't any issue to track for Sway unfortunately.

@kamyar-tm kamyar-tm added the epic An epic is a high-level master issue for large pieces of work. label Feb 15, 2024
@hal3e
Copy link
Contributor

hal3e commented May 8, 2024

done in: #1303

@hal3e hal3e closed this as completed May 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked epic An epic is a high-level master issue for large pieces of work.
Projects
None yet
Development

No branches or pull requests

4 participants