skmgoldin / tcr

A generic token-curated registry
Apache License 2.0
279 stars 131 forks source link

Save gas by using a ParameterizerInterface in Registry #64

Open adklempner opened 6 years ago

adklempner commented 6 years ago

Presently, Registry.sol imports Parameterizer.sol in its entirety, but only calls the function get(string _name).

You can save gas and storage space by using a ParameterizerInterface.sol in Registry

interface ParameterizerInterface {
        function get(string _name) public view returns (uint value);
}
adklempner commented 6 years ago

I believe the same is true for PLCRVoting

robrobbins commented 6 years ago

:+1: