fix: as any for string

This commit is contained in:
promaster1332 2023-09-21 10:52:43 +01:00 committed by Koray Koska
parent e48b79f6d5
commit cef94e3fda
No known key found for this signature in database
GPG Key ID: 1AE887EC6D5ECD63

@ -6,7 +6,7 @@ import { contractsToInstances } from './contractsToInstances';
export function handleWithdrawal(event: Withdrawal): void { export function handleWithdrawal(event: Withdrawal): void {
let entity = new WithdrawalEntity(event.transaction.hash.toHex() + '-' + event.logIndex.toString()); let entity = new WithdrawalEntity(event.transaction.hash.toHex() + '-' + event.logIndex.toString());
let result = contractsToInstances.get(`${event.address.toHexString()}`.toLowerCase()).split('-'); let result = contractsToInstances.get((`${event.address.toHexString()}` as any).toLowerCase()).split('-');
entity.amount = result[1]; entity.amount = result[1];
entity.currency = result[0]; entity.currency = result[0];
@ -25,7 +25,7 @@ export function handleWithdrawal(event: Withdrawal): void {
export function handleDeposit(event: Deposit): void { export function handleDeposit(event: Deposit): void {
let entity = new DepositEntity(event.transaction.hash.toHex() + '-' + event.logIndex.toString()); let entity = new DepositEntity(event.transaction.hash.toHex() + '-' + event.logIndex.toString());
let result = contractsToInstances.get(`${event.address.toHexString()}`.toLowerCase()).split('-'); let result = contractsToInstances.get((`${event.address.toHexString()}` as any).toLowerCase()).split('-');
entity.amount = result[1]; entity.amount = result[1];
entity.currency = result[0]; entity.currency = result[0];