Skip to content

Commit

Permalink
deps: ethjs@^0.4.0 -> @metamask/ethjs@^0.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
legobeat committed Nov 20, 2023
1 parent 587a921 commit fb3622e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 })
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Eth from 'ethjs';
import Eth from '@metamask/ethjs';
import registryMap from './registry-map.json';
import abi from './abi.json';

Expand Down
2 changes: 1 addition & 1 deletion test/index.js
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion types/ethjs/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
declare module 'ethjs' {
declare module '@metamask/ethjs' {
class Eth {
constructor(provider: any);

Expand Down

0 comments on commit fb3622e

Please sign in to comment.