Skip to content
This repository has been archived by the owner on Jun 9, 2024. It is now read-only.

feat(precompile): Shampoo/plr 100 allow explicit return types in precompile functions #898

Conversation

shampoobera
Copy link
Contributor

@shampoobera shampoobera commented Jul 15, 2023

functions returning structs are still a WIP-- we can use reflect in order to dynamically convert types so users don't need to. for now, we just return the abigen go bindings. also need to validate return types so they match the ABI's by using reflect.FieldByName and making sure they all match.

@linear
Copy link

linear bot commented Jul 15, 2023

PLR-100 Allow explicit return types in precompile functions

Instead of returning ([]any, error), make it so that we can return exactly what the solidity function's return type is, e.g. (*big.Int, error) for a solidity function that returns (uint256)

…poo/plr-100-allow-explicit-return-types-in-precompile-functions
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant