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

Allow passing larger types to exported functions #108

Open
athei opened this issue Apr 30, 2024 · 0 comments
Open

Allow passing larger types to exported functions #108

athei opened this issue Apr 30, 2024 · 0 comments

Comments

@athei
Copy link
Member

athei commented Apr 30, 2024

Right now we can only pass arguments that fit into registers to exported functions. I want to pass larger types either on the stack or some other memory region.

My use case is that I want to pass the amount of balance a contract running on pallet_contracts received as an argument (256bit). This will save us a host function call since almost every Solidity contract will query it. The first 256bit of the input data is another candidate since it contains the selector. hose two things are already more than we can pass in our 6 input registers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant