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

ability to pass arguments using an object #21

Open
sulliwane opened this issue May 7, 2018 · 1 comment
Open

ability to pass arguments using an object #21

sulliwane opened this issue May 7, 2018 · 1 comment

Comments

@sulliwane
Copy link

I think web3.js is providing this feature, instead of

mycontract.call(arg1, arg2, arg3, txObject);

allow to pass values using an object:

mycontract.call({ arg1: 'value1', arg2: 'value2', arg3: 'value3' }, txObject);

Input arg names are known from the ABI, so it would be super convenient to support that...

Thanks for your input on this!

@sulliwane
Copy link
Author

So apparently I totally made up the fact that web3.js has implemented this, as nothing mentioned on their doc (https://web3js.readthedocs.io/en/1.0/web3-eth-contract.html#id12) :-)

But still, I'd be glad to have your opinion on this feature proposal! Many Thanks

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