Closed trendzetter closed 1 year ago
I just saw there are other plans for the richlist.sh such as generating the script. So maybe my changes can't be applied directly as proposed
@trendzetter thank you for opening this PR, as you've noticed, @emmanueldenloye has refactored richlist generation in https://github.com/kadena-io/chainweb-data/pull/89 which already got merged at this point. I think #89 also addressed this missing case you're fixing in this PR, so I'll close it.
I replaced
cast(ifnull(json_extract(rowdata, '$.balance.decimal'), json_extract(rowdata, '$.balance')) as REAL) as 'balance'
withcast( ifnull( ifnull(json_extract(rowdata, '$.balance.decimal'), json_extract(rowdata, '$.balance')), json_extract(rowdata, '$.\$d.balance') ) as REAL) as 'balance'
to add the missing account balances