polkascan / polkascan-pre-harvester

Polkascan PRE Harvester
GNU General Public License v3.0
26 stars 34 forks source link

Fixed module_id string value of CodeStored event #18

Open gavfu opened 3 years ago

gavfu commented 3 years ago

I cloned and deployed polkascan-os locally to harvest blocks from a substrate-based blockchain network with pallet-contracts enabled. It turns out that deployed contracts are not harvested into polkascan.data_contract table.

I traced the issue, and found out that the module id of CodeStoredEventProcessor is misspelled. Thus, CodeStoredEventProcessor is not retrieved from ProcessorRegistry and invoked within PolkascanHarvesterService.add_block method.

This pull request corrects the module_id string value of contract CodeStored event.