@@ -2,7 +2,7 @@ import { expect } from "chai";
22import { homedir } from 'os' ;
33import { runCommand } from "./util.js" ;
44import { getConfigByChainId } from "../src/helpers.js" ;
5- import { ethers } from "ethers" ;
5+ import { JsonRpcProvider , ethers , formatEther , getAddress } from "ethers" ;
66import { EscrowContract } from "@oceanprotocol/lib" ;
77
88describe ( "Ocean CLI Escrow" , function ( ) {
@@ -25,7 +25,7 @@ describe("Ocean CLI Escrow", function () {
2525 tokenAddress = chainConfig . Ocean ;
2626 escrowAddress = chainConfig . Escrow ;
2727
28- const provider = new ethers . providers . JsonRpcProvider ( process . env . RPC ) ;
28+ const provider = new JsonRpcProvider ( process . env . RPC ) ;
2929 payer = new ethers . Wallet ( process . env . PRIVATE_KEY , provider ) ;
3030 payee = new ethers . Wallet ( '0xef4b441145c1d0f3b4bc6d61d29f5c6e502359481152f869247c7a4244d45209' , provider ) ;
3131
@@ -82,7 +82,7 @@ describe("Ocean CLI Escrow", function () {
8282 ) ;
8383
8484 const escrow = new EscrowContract (
85- ethers . utils . getAddress ( escrowAddress ) ,
85+ getAddress ( escrowAddress ) ,
8686 payer ,
8787 chainConfig . chainId
8888 ) ;
@@ -94,7 +94,7 @@ describe("Ocean CLI Escrow", function () {
9494 ) ;
9595
9696 const maxLockedAmountFromEscrowBN = authorizations [ 0 ] . maxLockedAmount ;
97- const maxLockedAmountFromEscrow = ethers . utils . formatEther ( maxLockedAmountFromEscrowBN ) ;
97+ const maxLockedAmountFromEscrow = formatEther ( maxLockedAmountFromEscrowBN ) ;
9898
9999 expect ( Number ( maxLockedAmountFromEscrow ) ) . to . equal ( Number ( maxLockedAmount ) ) ;
100100
0 commit comments