CMTA / CMTAT

Reference Solidity implementation of the CMTAT token developed by CMTA to tokenise securities in compliance with the Swiss law.
https://www.cmta.ch
Mozilla Public License 2.0
48 stars 22 forks source link

Emit event #258

Open rya-sge opened 8 months ago

rya-sge commented 8 months ago

We should emit events for variables initialized inside an initialize function

rya-sge commented 8 months ago

It is only an addition in BaseModule, but it increases the contract code size of +0.296.

It is not a lot, but we are too close of the maximum size limit

    function __Base_init_unchained(
        string memory tokenId_,
        string memory terms_,
        string memory information_,
        uint256 flag_
    ) internal onlyInitializing {
        tokenId = tokenId_;
        terms = terms_;
        information = information_;
        flag = flag_;
    }