From 527927812b1a05b13f8dc6b14aecaa6d24e98d61 Mon Sep 17 00:00:00 2001 From: Andreas Richter <708186+richtera@users.noreply.github.com> Date: Thu, 14 Sep 2023 09:17:10 -0400 Subject: [PATCH] fix: Remove hardcoded require --- src/index.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/index.ts b/src/index.ts index 4a6c4940..2acbb8d1 100644 --- a/src/index.ts +++ b/src/index.ts @@ -21,6 +21,7 @@ */ import { hexToNumber, isAddress, leftPad, toHex } from 'web3-utils'; +import HttpProvider from 'web3-providers-http'; import { ProviderWrapper } from './provider/providerWrapper'; @@ -62,9 +63,6 @@ import { getData } from './lib/getData'; import { supportsInterface, checkPermissions } from './lib/detector'; import { decodeMappingKey } from './lib/decodeMappingKey'; -/* eslint-disable-next-line */ -const HttpProvider = require('web3-providers-http'); - export { ERC725JSONSchema, ERC725JSONSchemaKeyType,