From fb3622ecfbd4d9864c03320166d4aec51a4fb428 Mon Sep 17 00:00:00 2001 From: legobt <6wbvkn0j@anonaddy.me> Date: Mon, 20 Nov 2023 01:58:32 +0000 Subject: [PATCH] deps: ethjs@^0.4.0 -> @metamask/ethjs@^0.5.0 --- README.md | 2 +- src/index.ts | 2 +- test/index.js | 2 +- types/ethjs/index.d.ts | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 299f088..9feb669 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ With Node.js Installed: ```javascript const { MethodRegistry } = require('eth-method-registry') -const Eth = require('ethjs') +const Eth = require('@metamask/ethjs') const provider = new Eth.HttpProvider('https://mainnet.infura.io/v3/YOUR-PROJECT-ID') const registry = new MethodRegistry({ provider }) diff --git a/src/index.ts b/src/index.ts index 512a17c..1b5f505 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,4 +1,4 @@ -import Eth from 'ethjs'; +import Eth from '@metamask/ethjs'; import registryMap from './registry-map.json'; import abi from './abi.json'; diff --git a/test/index.js b/test/index.js index e54d873..752bb5a 100644 --- a/test/index.js +++ b/test/index.js @@ -1,5 +1,5 @@ const test = require('tape'); -const Eth = require('ethjs'); +const Eth = require('@metamask/ethjs'); const { INFURA_PROJECT_ID } = require('rc')('infura', { // eslint-disable-next-line node/no-process-env diff --git a/types/ethjs/index.d.ts b/types/ethjs/index.d.ts index 4cb81c8..eaa8a3c 100644 --- a/types/ethjs/index.d.ts +++ b/types/ethjs/index.d.ts @@ -1,4 +1,4 @@ -declare module 'ethjs' { +declare module '@metamask/ethjs' { class Eth { constructor(provider: any);