This repository has been archived by the owner on Feb 26, 2024. It is now read-only.
Indexed events cause Uncaught TypeError: Cannot read property '0' of undefined #496
Closed
1 task done
Issue
Trying to transfer funds (with or without metamask) on the truffle webpack demo causes an error with ethjs-abi decodeEvent - topics is undefined.
I have narrowed this issue down to something having to do with event indexing - if I remove the indexed parameters from the Transfer event in the MetaCoin contract, this issue does not occur.
Steps to Reproduce
On Windows
Prompt1
truffle.cmd init webpack
Prompt2
testrpc
Prompt1
truffle.cmd compile
truffle.cmd migrate
npm run dev
Go to localhost:8080 and attempt to transfer funds to any address
Expected Behavior
Fund transfer succeeds and website shows success status
Actual Results
Transaction succeeds but console error is thrown on ethjs-abi decodeEvent - I'm not sure if it's an issue on their end or truffle's.
Environment
The text was updated successfully, but these errors were encountered: