Skip to content

Commit

Permalink
Merge pull request #309 from richtera/fix/hard-coded-require
Browse files Browse the repository at this point in the history
fix: Remove hardcoded require statement inside of module (esm) code.
  • Loading branch information
CJ42 authored Oct 5, 2023
2 parents 97202e0 + 5279278 commit 4ab134b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
*/

import { hexToNumber, isAddress, leftPad, toHex } from 'web3-utils';
import HttpProvider from 'web3-providers-http';

import { ProviderWrapper } from './provider/providerWrapper';

Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 4ab134b

Please sign in to comment.