Replies: 1 comment
-
You have to pass an object. struct Person {
uint age;
uint height;
}
function hello(Person memory person) external;
// in js
contract.hello({age: 123, height: 123}) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Suggestion
Hi,
Sorry for posting here, tried in the gitter channel.
When calling a function with a struct parameter, do I have to manually encode the data, or can I pass an object?
Thanks
Neil
Beta Was this translation helpful? Give feedback.
All reactions