pocketh
pocketh copied to clipboard
Feature Request: show from which contract it was inherited a function
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.
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.