Consensys / anonymous-zether

A private payment system for Ethereum-based blockchains, with no trusted setup.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error: Cannot read property 'forEach' of null

dariotarantini opened this issue · comments

When i run truffle test, i got:

  1. Contract: ZSC
    should allow transferring:
    Uncaught TypeError: Cannot read property 'forEach' of null
    at Subscription. (anonymous-zether/packages/anonymous.js/src/client.js:52:47)
    and

  2. Contract: ZSC
    "after each" hook: after test for "should allow transferring":
    Uncaught TypeError: Cannot read property 'forEach' of null
    at Subscription. (anonymous-zether/packages/anonymous.js/src/client.js:52:47)

just saw this—thanks for raising, i'm able to reproduce. there have been a lot of software updates so i suspect something broke. let me take a look

Thanks for reply, i have another question. Is there any way to avoid websocket subscriptions?

can you let me know if this fixes it? 65488fc

the only way to avoid them is to use IPC instead. but you can't use HTTP—or you can, but event subscription won't work. if you wanted, you could try to custom-build a version which doesn't subscribe to the events.

yeah it fix it. Also, is subscriptions mandatory with zsc? or i can just remove it and fetch transaction manually with json-rpc

if you wanted, you could create a custom version with no subscriptions. the issue is then that you will need to manually retrieve / decrypt your account state before you can make a transaction. it will take some work on your end, but it is definitely possible.

Okay thanks, i will work on it. Also, are you planning to reinstall telegram? 😄