From 7b7ee17c621a29b518fb28b46d315a914eeb41ce Mon Sep 17 00:00:00 2001 From: JQQQ Date: Wed, 10 Jul 2024 14:00:58 +1200 Subject: [PATCH] Fix polkadot starter --- Polkadot/Polkadot-starter/package.json | 3 ++- Polkadot/Polkadot-starter/src/mappings/mappingHandlers.ts | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Polkadot/Polkadot-starter/package.json b/Polkadot/Polkadot-starter/package.json index e17efbe..c4ce511 100644 --- a/Polkadot/Polkadot-starter/package.json +++ b/Polkadot/Polkadot-starter/package.json @@ -25,7 +25,8 @@ "@subql/cli": "latest", "@subql/testing": "latest", "@subql/types": "latest", - "typescript": "^5.2.2" + "typescript": "^5.2.2", + "@subql/common-substrate": "^4.0.1" }, "resolutions": { "ipfs-unixfs": "6.0.6" diff --git a/Polkadot/Polkadot-starter/src/mappings/mappingHandlers.ts b/Polkadot/Polkadot-starter/src/mappings/mappingHandlers.ts index ceb3c53..fff1c12 100644 --- a/Polkadot/Polkadot-starter/src/mappings/mappingHandlers.ts +++ b/Polkadot/Polkadot-starter/src/mappings/mappingHandlers.ts @@ -26,7 +26,7 @@ export async function handleEvent(event: SubstrateEvent): Promise { // logger.info(JSON.stringify(event)); const { event: { - data: [to, amount], + data: [, to, amount], }, } = event;