Skip to content

Commit

Permalink
Gas inheritance script lint hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
cag committed Mar 2, 2018
1 parent 7a5c272 commit 3f44b75
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/measure_gas_stats.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ const inheritanceMap = [
['Oracle', ['CentralizedOracle', 'DifficultyOracle', 'FutarchyOracle', 'MajorityOracle', 'SignedMessageOracle', 'UltimateOracle']],
['StandardToken', ['EtherToken', 'OutcomeToken']],
['Token', ['StandardToken']],
].forEach(([parent, children]) => {
]

inheritanceMap.forEach(([parent, children]) => {
const childrenData = children.map(name => gasStats[name]).filter(data => data)
if(childrenData.length === 0) return
if(!gasStats[parent])
Expand Down

0 comments on commit 3f44b75

Please sign in to comment.