diff --git a/__tests__/config/fixtures.ts b/__tests__/config/fixtures.ts index 68e5f674c..c99f37268 100644 --- a/__tests__/config/fixtures.ts +++ b/__tests__/config/fixtures.ts @@ -12,6 +12,7 @@ import { ETransactionVersion } from '../../src/types/api'; import { toHex } from '../../src/utils/num'; import { wait } from '../../src/utils/provider'; import { isString } from '../../src/utils/typed'; +import './customMatchers'; // ensures TS traversal const readFile = (subpath: string) => fs.readFileSync(path.resolve(__dirname, subpath)); diff --git a/__tests__/contract.test.ts b/__tests__/contract.test.ts index 229176c24..a01841402 100644 --- a/__tests__/contract.test.ts +++ b/__tests__/contract.test.ts @@ -38,8 +38,8 @@ describe('contract module', () => { classHash: '0x54328a1075b8820eb43caf0caa233923148c983742402dcfc38541dd843d01a', constructorCalldata, }); - - erc20Contract = new Contract(contracts.Erc20.abi, deploy.contract_address!, provider); + erc20Address = deploy.address; + erc20Contract = new Contract(contracts.Erc20.abi, erc20Address, provider); const { deploy: multicallDeploy } = await account.declareAndDeploy({ contract: contracts.Multicall, diff --git a/src/wallet/account.ts b/src/wallet/account.ts index b0f0d56ac..be463c3b0 100644 --- a/src/wallet/account.ts +++ b/src/wallet/account.ts @@ -80,6 +80,7 @@ export class WalletAccount extends Account implements AccountInterface { }); if (!address.length) { + // eslint-disable-next-line no-console console.warn( '@deprecated Use static method WalletAccount.connect or WalletAccount.connectSilent instead. Constructor {@link WalletAccount.(format:2)}.' );