Skip to content
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
Ericxgao opened this issue Jul 13, 2017 · 4 comments
Closed
1 task done

Comments

@Ericxgao
Copy link

Ericxgao commented Jul 13, 2017


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.

image

Environment

  • Operating System: Windows 10
  • Truffle version: 3.3.0
  • node version: 6.11.0
  • npm version: 5.0.3
@ollivierv
Copy link

Same issue on truffle@3.4.4

@tcoulter
Copy link
Contributor

Story points: 1

@tcoulter
Copy link
Contributor

This one has also been reported at ethjs/ethjs-abi#6.

@tcoulter
Copy link
Contributor

This has no been fixed. See my comment in ethjs/ethjs-abi#6.

Cheers!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants