-
Notifications
You must be signed in to change notification settings - Fork 215
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
(Bug) Failed to check for transaction receipt #472
Comments
How do u get private key from user? This issue is not related to root problem mentined above, because in ICO-wizard there is no sendSignedTx call, as well as having direct access to raw private key. @vbaranov Can you show us where is the code reference in wizard where you actually send Tx and waiting for receipt? |
Can it be that you are calling callback on receipt outside of IF block from CheckTxMined export function checkTxMined(web3, txhash, cb) {
web3.eth.getTransactionReceipt(txhash, function(err, receipt) {
if (receipt)
console.log(receipt);
cb(receipt);
});
} to export function checkTxMined(web3, txhash, cb) {
web3.eth.getTransactionReceipt(txhash, function(err, receipt) {
if (receipt){
console.log(receipt);
cb(receipt);
}
});
} also, you are not checking for errors here: you are only expecting a receipt, this is anti-pattern |
Thank you for valuable comments! |
I share the idea of refactor (progressively), and I think is a must to fix all the anti-patterns in the code. Anyway, yesterday I tested without using the So today I rolled back, and used the same code that's in Log: Sucessful tx: |
If you are reporting a problem with ICO Wizard, please include the following information:
Which network did you use? (Mainnet, Kovan, Rinkeby, etc.)
Mainnet
If you were able to create it, what is the URL of your crowdsale?
I wasn't able to create the crowdsale. ICO Wizard failed on the 2nd transaction. But the transaction is successfully mined later: https://etherscan.io/tx/0xeceac5957cd7d57826f21e0b9f6c462617efa99363a135586f7dc46c95777341.
The same error was happening before this PR #465 is merged too. So, it isn't provoked by it.
Do you have screenshots showing the problem?
Root problem web3/web3.js#1255
Relates to #471
Do you see errors in the dev console? If yes, please include a screenshot
(To open the dev console in Google Chrome, press F12, or go to
View -> Developer -> Developer Tools
, and open the Console tab)wizard.poa.network-1515514258309.log
The text was updated successfully, but these errors were encountered: