From d3bbd412de9640aa5f601e0b56b6b70e89018209 Mon Sep 17 00:00:00 2001 From: Anjan Roy Date: Wed, 27 Jan 2021 23:36:35 +0530 Subject: [PATCH] more concise import instruction --- root/src/mappings/registry.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/root/src/mappings/registry.ts b/root/src/mappings/registry.ts index 28dd257..577ae00 100644 --- a/root/src/mappings/registry.ts +++ b/root/src/mappings/registry.ts @@ -1,16 +1,12 @@ import { Address } from '@graphprotocol/graph-ts' -import { TokenMapped } from '../../generated/Registry/Registry' +import { Registry, TokenMapped } from '../../generated/Registry/Registry' import { TokenMapping } from '../../generated/schema' // Using contract address for creating instance of `Registry` // contract, to be used for checking whether token is ERC20/ ERC721 import { registryAddress } from '../network' -// This is the contract we're going to interact with when `TokenMapped` event is emitted -// to check what kind of token it is -import { Registry } from '../../generated/Registry/Registry' - export function handlePlasmaTokenMapped(event: TokenMapped): void { let id = 'plasma-token-mapping-' + event.params.rootToken.toHexString()