You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If an event is inherited it will not display anything in the description. After digging through this a bit I found that the devdoc and userdoc contain different sets of information if the event was inherited compared to if it was defined on the contract or interface directly. This was not obvious at first but it became very clear after logging the output of the info object for Bar.sol and IBar.sol.
Bar
devdoc event undefined
userdoc event { 'Transfer(uint256)': { notice: 'Emitted when transfer' } }
IBar
devdoc event {
'Transfer(uint256)': {
details: 'Transfer some stuff',
params: { foo: 'Amount of stuff' }
}
}
userdoc event { 'Transfer(uint256)': { notice: 'Emitted when transfer' } }
Given that the issue is with the incoming data perhaps it makes sense to do the following, 1) when the docs have been created, check if more than one event with the same name, description, and params exists 2) combine the matched events such that they all use the most complete set of information.
The text was updated successfully, but these errors were encountered:
If an event is inherited it will not display anything in the description. After digging through this a bit I found that the
devdoc
anduserdoc
contain different sets of information if the event was inherited compared to if it was defined on the contract or interface directly. This was not obvious at first but it became very clear after logging the output of theinfo
object forBar.sol
andIBar.sol
.Given that the issue is with the incoming data perhaps it makes sense to do the following, 1) when the docs have been created, check if more than one event with the same name, description, and params exists 2) combine the matched events such that they all use the most complete set of information.
The text was updated successfully, but these errors were encountered: