kangarang / tcr-ui

A client-side shell to interact with token-curated registries
MIT License
68 stars 28 forks source link

Couldn't do the vote #84

Closed hailq closed 6 years ago

hailq commented 6 years ago

I don't know why but i got failed transaction when trying to do the voting

screen shot 2018-05-16 at 11 55 40 am
kangarang commented 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:

ss- 2018-05-16 at 1 26 40 am

thanks

kangarang commented 6 years ago

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.

hailq commented 6 years ago

How to get SET_LISTING event ?

hailq commented 6 years ago

screen shot 2018-05-16 at 12 36 32 pm

screen shot 2018-05-16 at 12 36 58 pm

hailq commented 6 years ago

Oh i got this error 'delay' is not defined no-undef , it seems that 'delay' wasn't declared.

kangarang commented 6 years ago

yes, please make sure to declare delay up at the top, where you import the redux-saga/effects

hailq commented 6 years ago

what is the content of delay function ?

hailq commented 6 years ago

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'.

hailq commented 6 years ago

I put the delay const delay = (ms) => new Promise(res => setTimeout(res, ms)). But the transaction is still failed

kangarang commented 6 years ago

oooo, try importing delay from redux-saga, not redux-saga/effects. sorry for the misguidance

hailq commented 6 years ago

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:

hailq commented 6 years ago

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.

kangarang commented 6 years ago

related: https://app.zenhub.com/workspace/o/kangarang/tcr-ui/issues/83