Current store VoterId mapping is way optimal than standard balances[thisOwner]++ . If change to ++balances[thisOwner], it can save extra 3 gas than current version.
change unused public function to external
Issue copy pasted directly from slither. External function call cost less gas than public function.
Gas
Discrepancy Increment use
i++
allTokens[numIdentities++] = thisToken;
balances[thisOwner]++
. If change to++balances[thisOwner]
, it can save extra 3 gas than current version.change unused public function to external
Issue copy pasted directly from slither. External function call cost less gas than public function.