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

submit work doc #5200

Closed
1 task done
jdevcs opened this issue Jul 4, 2022 · 4 comments
Closed
1 task done

submit work doc #5200

jdevcs opened this issue Jul 4, 2022 · 4 comments
Assignees
Labels
1.x 1.0 related issues Documentation Relates to project wiki or documentation

Comments

@jdevcs
Copy link
Contributor

jdevcs commented Jul 4, 2022

Is there an existing issue for this?

  • I have searched the existing issues

What would you like to say about Web3.js' documentation?

Example for submit work has error, its not array: https://web3js.readthedocs.io/en/v1.7.4/web3-eth.html#id114

Using array as its param : Error: Invalid number of parameters for "submitWork". Got 1 expected 3!

Examples/References

No response

@jdevcs jdevcs added Documentation Relates to project wiki or documentation 1.x 1.0 related issues labels Jul 4, 2022
@github-actions
Copy link

github-actions bot commented Sep 4, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions. If you believe this was a mistake, please comment.

@github-actions github-actions bot added the Stale Has not received enough activity label Sep 4, 2022
@jdevcs jdevcs removed the Stale Has not received enough activity label Sep 6, 2022
@github-actions
Copy link

github-actions bot commented Nov 6, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions. If you believe this was a mistake, please comment.

@github-actions github-actions bot added the Stale Has not received enough activity label Nov 6, 2022
@jdevcs jdevcs removed the Stale Has not received enough activity label Nov 7, 2022
@github-actions
Copy link

github-actions bot commented Jan 7, 2023

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions. If you believe this was a mistake, please comment.

@github-actions github-actions bot added the Stale Has not received enough activity label Jan 7, 2023
@jdevcs jdevcs removed the Stale Has not received enough activity label Jan 9, 2023
@totgard
Copy link

totgard commented Jan 29, 2023

The same situation if you try to invoke the contract method.

args = ['1','1','1']
contract.methods['methodName'](args)

Result

web3.min.js:22 Uncaught Error: Invalid number of parameters for <methodName>. Got 1 expected 3!
    at Object.InvalidNumberOfParams (web3.min.js:22:368881)
    at y._createTxObject (web3.min.js:22:227981)
    at <anonymous>:1:24

But if call method like this:

contract.methods['methodName'](arg1, arg2, arg3)

Everything works.

But in docs:
myContract.methods.myMethod([param1[, param2[, ...]]]).send(options[, callback])
Link to docs: https://web3js.readthedocs.io/en/v1.7.4/web3-eth-contract.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1.x 1.0 related issues Documentation Relates to project wiki or documentation
Projects
None yet
Development

No branches or pull requests

3 participants