@@ -5,7 +5,6 @@ import { EscrowAuthorization, EscrowLock } from '../../../@types/Escrow.js'
55import { getOceanArtifactsAdressesByChainId } from '../../../utils/address.js'
66import { RPCS } from '../../../@types/blockchain.js'
77import { create256Hash } from '../../../utils/crypt.js'
8- import { CORE_LOGGER } from '../../../utils/logging/common.js'
98export class Escrow {
109 private networks : RPCS
1110 private claimDurationTimeout : number
@@ -123,23 +122,11 @@ export class Escrow {
123122 const contract = await this . getContract ( chainId , signer )
124123 if ( ! contract ) throw new Error ( `Failed to initialize escrow contract` )
125124 const wei = await this . getPaymentAmountInWei ( amount , chain , token )
126- const escrowAddress = await this . getEscrowContractAddressForChain ( chainId )
127-
128- CORE_LOGGER . logMessage (
129- `Escrow ${ escrowAddress } checking balance for chain ${ chain } , payer ${ payer } , token ${ token } ` ,
130- true
131- )
132125 const userBalance = await this . getUserAvailableFunds ( chain , payer , token )
133126
134127 if ( BigInt ( userBalance . toString ( ) ) < BigInt ( wei ) ) {
135- CORE_LOGGER . logMessage (
136- `Escrow ${ escrowAddress } insufficient funds for payer ${ payer } (available ${ userBalance . toString ( ) } , required ${ wei } )` ,
137- true
138- )
139128 // not enough funds
140- throw new Error (
141- `User ${ payer } does not have enough funds in escrow with address ${ escrowAddress } `
142- )
129+ throw new Error ( `User ${ payer } does not have enough funds in escrow` )
143130 }
144131 const auths = await this . getAuthorizations (
145132 chain ,
0 commit comments