Skip to content

Commit

Permalink
more concise import instruction
Browse files Browse the repository at this point in the history
  • Loading branch information
itzmeanjan committed Jan 27, 2021
1 parent 72fab40 commit d3bbd41
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions root/src/mappings/registry.ts
Original file line number Diff line number Diff line change
@@ -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()

Expand Down

0 comments on commit d3bbd41

Please sign in to comment.