near / near-indexer-for-explorer

Watch NEAR network and store all the data from NEAR blockchain to PostgreSQL database
https://near-indexers.io/docs/projects/near-indexer-for-explorer
GNU General Public License v3.0
123 stars 56 forks source link

fix: Dont `bail` when encountering unknown contract hash #335

Closed morgsmccauley closed 1 year ago

morgsmccauley commented 1 year ago

The lockup contract was updated (https://github.com/near/core-contracts/pull/220) creating a new contract hash for lockup accounts. Currently we bail out of the circulating supply calculations when we encounter a hash we are not aware of.

This PR updates the contract check so that it no longer bails when encountering an 'unknown' hash. Instead we assume all contracts other than the ones explicitly listed are not 'buggy'.