Replies: 4 comments
-
The problem is a contract doesn’t know its name. It isn’t in the ABI, for example. I’ve brought up before the idea of adding struct and metadata fragments to the ABI, but there generally hasn’t been much interest… |
Beta Was this translation helpful? Give feedback.
-
@ricmoo Maybe I think we could inherit the name from the contractFactory then, otherwise showing it as a null |
Beta Was this translation helpful? Give feedback.
-
But a ContractFactory also doesn't know the name of the contract... |
Beta Was this translation helpful? Give feedback.
-
Moving this to "Ideas" to further discuss ways we might address this in the future, whether by a constructor argument/options or by adding ABI metadata fields. :) |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the Feature
It would be a great feature to distinguish contract objects ( Like getContractName() would be good, events and contract functions already have similar feature but why not contract? )
Code Example
BaseContract.getContractName()
Beta Was this translation helpful? Give feedback.
All reactions