pocketh icon indicating copy to clipboard operation
pocketh copied to clipboard

Feature Request: show from which contract it was inherited a function

Open andresbach opened this issue 6 years ago • 1 comments

When you have inheritance between contracts, it would be helpful to know from which contract it was inherited a certain function. This could be added to the $ pocketh selectors <artifacts> command.

Also, it would be highly appreciated if the command warns if the inherited function is shadowed by another contract.

andresbach avatar May 20 '19 19:05 andresbach

I think that you can use the members command for that. If you don't use the --sort option, and use the --inherited option, members should be listed in the C3 linearized order, so whatever's on top will be the contract that ultimately defines the function. You could use the --highlight option with the name of the function to help you find it.

eternauta1337 avatar May 25 '19 00:05 eternauta1337