From b5956cf4c6402b3426f652893bbb120f1b7a1884 Mon Sep 17 00:00:00 2001 From: Erik Marks <25517051+rekmarks@users.noreply.github.com> Date: Mon, 2 Nov 2020 21:17:02 -0800 Subject: [PATCH] eth-rpc-errors@4.0.0 (#293) --- package.json | 2 +- src/transaction/TransactionController.ts | 2 +- yarn.lock | 7 +++++++ 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index e311a4907d9..52bd8b4eeba 100644 --- a/package.json +++ b/package.json @@ -43,7 +43,7 @@ "eth-method-registry": "1.1.0", "eth-phishing-detect": "^1.1.13", "eth-query": "^2.1.2", - "eth-rpc-errors": "^3.0.0", + "eth-rpc-errors": "^4.0.0", "eth-sig-util": "^2.3.0", "ethereumjs-util": "^6.1.0", "ethereumjs-wallet": "0.6.0", diff --git a/src/transaction/TransactionController.ts b/src/transaction/TransactionController.ts index e25100c9f23..33da856ff88 100644 --- a/src/transaction/TransactionController.ts +++ b/src/transaction/TransactionController.ts @@ -1,5 +1,6 @@ import { EventEmitter } from 'events'; import { addHexPrefix, bufferToHex } from 'ethereumjs-util'; +import { ethErrors } from 'eth-rpc-errors'; import BaseController, { BaseConfig, BaseState } from '../BaseController'; import NetworkController from '../network/NetworkController'; @@ -14,7 +15,6 @@ import { handleTransactionFetch, } from '../util'; -const { ethErrors } = require('eth-rpc-errors'); const MethodRegistry = require('eth-method-registry'); const EthQuery = require('eth-query'); const Transaction = require('ethereumjs-tx'); diff --git a/yarn.lock b/yarn.lock index 3c875485dee..990f8c86c15 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2549,6 +2549,13 @@ eth-rpc-errors@^3.0.0: dependencies: fast-safe-stringify "^2.0.6" +eth-rpc-errors@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/eth-rpc-errors/-/eth-rpc-errors-4.0.0.tgz#6a2c075c5f02df12cc949e8450d72f1aba3ebdc4" + integrity sha512-Jf/GX6PBQz8JLmICTLDgyAUB4BZ0YmnGhgoj2t+c7GdxGF2SFROO9Mk5q+MiJMZ1yGNcIOjnbmZ+NBv9ewIdEQ== + dependencies: + fast-safe-stringify "^2.0.6" + eth-sig-util@^1.4.0, eth-sig-util@^1.4.2: version "1.4.2" resolved "https://registry.yarnpkg.com/eth-sig-util/-/eth-sig-util-1.4.2.tgz#8d958202c7edbaae839707fba6f09ff327606210"