-
Notifications
You must be signed in to change notification settings - Fork 118
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
myContract.methods.myMethod().send() does not fire receipt #3
Comments
I am facing the same problem. |
solved It: |
@ravi-kumar-1010 In my case as I understand the receipt is not firirng. So i called transactionhash instead of receipt. It worked. |
hi im having the same issue, ive changed: createProduct(name, price) { to: createProduct(name, price) { and it still does not work, am I doing something wrong |
https://web3js.readthedocs.io/en/v1.2.6/web3-eth-contract.html#id36 check this you can also use confirmation. |
@hartej-s just copy from the repo directly |
myContract.methods.myMethod().send() does not fire receipt.
and since it is not going inside the receipt function, it is not reloading the page.
createProduct(name, price) {
this.setState({ loading: true })
this.state.marketplace.methods.createProduct(name, price).send({ from: this.state.account })
.once('receipt', (receipt) => {
this.setState({ loading: false })
})
}
In this it is not going till the setstate {loading : false } condition..
How to solve this?
The text was updated successfully, but these errors were encountered: