Skip to content

How do I create an interface for a function taking a struct as a parameter? #1700

Answered by zemse
iflp asked this question in Q&A
Discussion options

You must be logged in to vote

Heya! The following should work

const PersonABI = ['function save(tuple(string name, uint256 age) _person) public payable'];

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by zemse
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants