Skip to content

Commit 9ee0e36

Browse files
committed
fix: removed logs
1 parent 10f1f24 commit 9ee0e36

File tree

1 file changed

+1
-14
lines changed

1 file changed

+1
-14
lines changed

src/components/core/utils/escrow.ts

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import { EscrowAuthorization, EscrowLock } from '../../../@types/Escrow.js'
55
import { getOceanArtifactsAdressesByChainId } from '../../../utils/address.js'
66
import { RPCS } from '../../../@types/blockchain.js'
77
import { create256Hash } from '../../../utils/crypt.js'
8-
import { CORE_LOGGER } from '../../../utils/logging/common.js'
98
export 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

Comments
 (0)