question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Calls of methods containing tuple arguments are not counted

See original GitHub issue

I’ve setup eth-gas-reporter for our codebase and noticed that it does not recognize methods with arguments of type tuple as being called. If onlyCalledMethods is set to false they are listed in the reporting table but without any results (# calls is 0). For example in the following test-case only setEventId is counted in the reporting.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:3
  • Comments:10 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
cgeweckecommented, Dec 2, 2019

Apologies for the delay fixing this. Should now be resolved in 0.2.13 - migrated decoding to ethers.js in #187

1reaction
cgeweckecommented, Dec 3, 2019

@boolafish 0.2.14. Tested plasma locally and looks like +/- like this… image is not the whole chart but seems like there are more PaymentExitGame methods reported than in yesterday’s codechecks … just lmk if this still isn’t right.

Screen Shot 2019-12-02 at 9 38 25 PM

Read more comments on GitHub >

github_iconTop Results From Across the Web

tuples as function arguments - python - Stack Overflow
When you call a function, you're not providing a tuple. You're providing arguments. A tuple can be an argument, but only one -...
Read more >
How to Pass a Tuple as an Argument to a Function?
Individual tuples as arguments are just individual variables. A function call is not an assignment statement; it's a reference mapping.
Read more >
3. Strings, lists, and tuples — Beginning Python Programming ...
Strings, lists, and tuples are objects, which means that they not only hold values, but have built-in behaviors called methods, that act on...
Read more >
Built-in Functions — Python 3.11.1 documentation
The __next__() method of the iterator returned by enumerate() returns a tuple containing a count (from start which defaults to 0) and the...
Read more >
Functions and Methods for Tuples
AttributeError: 'tuple' object has no attribute 'count' To solve the problem, call the list function with the tuple as its argument, and invoke...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found