Closed yohamta closed 1 month ago
Hi @yohamta, sounds good to add these fields if they are returned by default anyway.
Do you know if they are also available in Etherscan's results?
Happy to have you contribute this!
Hi @shazow, thanks for the prompt feedback!
Do you know if they are also available in Etherscan's results?
From what I understand, Etherscan’s results don’t currently include userdoc
or devdoc
. So for now, it might make sense to only add these fields when using the Sourcify loader. In the future, it could be possible to use solc-js to gather them from the source code, which could help extend support to Etherscan, but that’s just an idea!
Let's add them as optional fields, so we can set them if they exist.
Understood! I'll prepare the PR shortly.
Hi @shazow,
First and foremost, thank you for developing this incredibly useful library. I would like to propose the following enhancement:
Add
userdoc
anddevdoc
to theContractResult
TypeImplementation Details
ContractResult
type to include:userdoc
: User documentationdevdoc
: Developer documentationWe are willing to submit a pull request to implement this feature if that would be acceptable.