Closed hailq closed 6 years ago
this must be so frustrating for you! i'm sorry the app isn't playing nice.
could i see some more of the logs you get from the console? a screenshot of the logs that get printed after the listings/SET_LISTINGS action would be super helpful. like this:
thanks
another thing that just came to mind:
i think there's a bug either here or right before. ethjs sometimes doesn't receive the tx receipt in time although it should since line 110 invokes ethers' waitForTransaction
as a workaround, try adding a yield call(delay, 1000)
on line 112 and see if that helps.
How to get SET_LISTING event ?
Oh i got this error 'delay' is not defined no-undef
, it seems that 'delay' wasn't declared.
yes, please make sure to declare delay
up at the top, where you import the redux-saga/effects
what is the content of delay function ?
did you mean import 'delay' from redux-saga/effects
. I did this import { select, put, call, fork, takeEvery, delay } from 'redux-saga/effects'
and got this error 'redux-saga/effects' does not contain an export named 'delay'.
I put the delay const delay = (ms) => new Promise(res => setTimeout(res, ms))
. But the transaction is still failed
oooo, try importing delay
from redux-saga
, not redux-saga/effects
. sorry for the misguidance
Still not works :(. Is there any way to debug it, it keeps sending failed transaction. Or did i do something wrong. Here is the flow i try:
Could you try it ? I deployed to Rinkeby testnet. Here is my token address: 0x97b4c6b720641fad64fb4a81f583289846e94192
, registry address: 0x225f49b7bfc88703c9c5f2f6c13c5a341461dd5f
. Send me your addresses then i will send you some tokens.
I don't know why but i got failed transaction when trying to do the voting