Versioning

HatsModule includes a single storage variable for versioning purposes.

string public version_;

This variable is set in the constructor, which means that it has a value only in the implementation contract and not in any instances (since instance clones are not created with the constructor).

To get the version for a module instance use the version function instead.

function version() public view returns (string memory) {
    return HatsModule(IMPLEMENTATION()).version_();
}

Last updated