Skip to content

Commit

Permalink
remove debug logs
Browse files Browse the repository at this point in the history
  • Loading branch information
bogdanfazakas committed Mar 25, 2024
1 parent 107e932 commit 4f4463f
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 13 deletions.
6 changes: 1 addition & 5 deletions src/components/core/utils/validateOrders.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,18 +55,14 @@ export async function validateOrderTransaction(
message: errorMsg
}
}
console.log('datanftAddress ', dataNftAddress)
console.log('datatokenAddress ', datatokenAddress)

const erc20Address = txReceiptMined.to
const datatokenContract = new Contract(
erc20Address,
ERC20Template.abi,
await provider.getSigner()
)
const erc721Address = await datatokenContract.getERC721Address()
console.log('erc721Address ', erc721Address)
console.log('erc20Address ', erc20Address)

const orderReusedEvent = fetchEventFromTransaction(
txReceiptMined,
EVENTS.ORDER_REUSED,
Expand Down
4 changes: 0 additions & 4 deletions src/test/integration/download.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,12 +88,8 @@ describe('Should run a complete node flow.', () => {
const indexer = new OceanIndexer(database, mockSupportedNetworks)

let network = getOceanArtifactsAdressesByChainId(DEVELOPMENT_CHAIN_ID)
console.log('network ', network)
console.log('DEVELOPMENT_CHAIN_ID ', DEVELOPMENT_CHAIN_ID)

if (!network) {
network = getOceanArtifactsAdresses().development
console.log('network 2', network)
}

provider = new JsonRpcProvider('http://127.0.0.1:8545')
Expand Down
4 changes: 0 additions & 4 deletions src/utils/address.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@ import { ENVIRONMENT_VARIABLES, existsEnvironmentVariable } from './index.js'
*/
export function getOceanArtifactsAdresses(): any {
try {
console.log(
'Getting ocean artifacts addresses',
ENVIRONMENT_VARIABLES.ADDRESS_FILE.value
)
if (existsEnvironmentVariable(ENVIRONMENT_VARIABLES.ADDRESS_FILE)) {
// eslint-disable-next-line security/detect-non-literal-fs-filename
const data = fs.readFileSync(ENVIRONMENT_VARIABLES.ADDRESS_FILE.value, 'utf8')
Expand Down

0 comments on commit 4f4463f

Please sign in to comment.