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
Supporting inheritance at the template level would be useful if we wanted to reuse code from templates. For example, lets say we have a GasConfigTemplate that we want to inherit from and add additional functionality. Right now, this can't be done because the functions that are overridden.
contractA {
function foo() internalpurevirtualreturns (string[] memory);
}
contractBisA {
function foo() internalpurevirtualoverridereturns (string[] memory) {
// This function is currently not virtual but can be.
}
}
contractCisB {
function foo() internalpureoverridereturns (string[] memory) {
// Further override - for additional features.
}
}
The text was updated successfully, but these errors were encountered:
Supporting inheritance at the template level would be useful if we wanted to reuse code from templates. For example, lets say we have a
GasConfigTemplate
that we want to inherit from and add additional functionality. Right now, this can't be done because the functions that are overridden.The text was updated successfully, but these errors were encountered: