Skip to content

Commit 426f174

Browse files
committed
Update to latest upstream changes
1 parent 07371f6 commit 426f174

3 files changed

Lines changed: 526 additions & 1705 deletions

File tree

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,9 @@
3333
"devDependencies": {
3434
"@chainlink/optimism-utils": "https://github.com/smartcontractkit/optimism-utils.git",
3535
"@eth-optimism/hardhat-ovm": "^0.2.2",
36-
"@ethersproject/bignumber": "^5.1.1",
37-
"@ethersproject/units": "^5.1.0",
36+
"@ethersproject/bignumber": "^5.4.0",
37+
"@ethersproject/providers": "^5.4.0",
38+
"@ethersproject/units": "^5.4.0",
3839
"@nomiclabs/hardhat-ethers": "^2.0.2",
3940
"@nomiclabs/hardhat-waffle": "^2.0.1",
4041
"@typechain/ethers-v5": "^7.0.1",
@@ -48,7 +49,7 @@
4849
"chai": "^4.3.4",
4950
"dotenv": "^8.2.0",
5051
"ethereum-waffle": "^3.4.0",
51-
"ethers": "^5.1.4",
52+
"ethers": "^5.4.0",
5253
"glob": "^7.1.6",
5354
"hardhat": "^2.4.3",
5455
"hardhat-contract-sizer": "^2.0.3",

src/contract-defs.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import * as path from 'path'
22
import * as glob from 'glob'
3-
import { ethers, ContractFactory, Signer, Contract } from 'ethers'
4-
import { Interface } from 'ethers/lib/utils'
3+
import { ContractFactory, ContractInterface, Signer, Contract } from 'ethers'
54
import { Targets, Versions } from '.'
65

76
export const getContractDefinition = (
@@ -26,9 +25,9 @@ export const getContractInterface = (
2625
name: string,
2726
version?: Versions,
2827
target: Targets = Targets.EVM,
29-
): Interface => {
28+
): ContractInterface => {
3029
const definition = getContractDefinition(name, version, target)
31-
return new ethers.utils.Interface(definition.abi)
30+
return definition.abi
3231
}
3332

3433
export const getContractFactory = (

0 commit comments

Comments
 (0)