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: Avoid recreating access key on transfer to implicit account #317

Closed morgsmccauley closed 1 year ago

morgsmccauley commented 1 year ago

This PR refactors the access_keys logic to be driven from StateChanges rather than ExecutionOutcomes, allowing us to remove the logic which indirectly creates an access key on every transfer to an implicit account. This means access keys will only be written when the implicit account is first created, and ignore subsequent transfers. Resolves https://github.com/near/near-indexer-for-explorer/issues/304.

Test plan: