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
Some factory events include the target/child address within a struct. For example, from Morpho:
struct MarketParams {
address loanToken;
address collateralToken;
address oracle;
address irm;
uint256 lltv;
}
/// @notice Emitted when creating a market./// @param id The market id./// @param marketParams The market that was created.event CreateMarket(Id indexedid, MarketParams marketParams);
At the moment, the factory configuration for this ABI item only accepts "id" or "marketParams", neither of which will work at all. If possible, we should consider parameter more flexible, eg "marketParams.oracle" which was the target address in this example.
Perhaps we could support the entire Solidity syntax for how to index into a struct (by property name or array index) at both type-level and runtime.
The text was updated successfully, but these errors were encountered:
Some factory events include the target/child address within a struct. For example, from Morpho:
At the moment, the
factory
configuration for this ABI item only accepts"id"
or"marketParams"
, neither of which will work at all. If possible, we should considerparameter
more flexible, eg"marketParams.oracle"
which was the target address in this example.Perhaps we could support the entire Solidity syntax for how to index into a struct (by property name or array index) at both type-level and runtime.
The text was updated successfully, but these errors were encountered: