diff --git a/packages/server/tests/acceptance/rpc_batch2.spec.ts b/packages/server/tests/acceptance/rpc_batch2.spec.ts index b64b131399..b74c0166fa 100644 --- a/packages/server/tests/acceptance/rpc_batch2.spec.ts +++ b/packages/server/tests/acceptance/rpc_batch2.spec.ts @@ -751,23 +751,33 @@ describe('@api-batch-2 RPC Server Acceptance Tests', function () { let redirectBytecode: string; async function createNftHTSToken(account) { + global.logger.debug(`INSIDE creating NFT HTS Token`); + const mainContract = new ethers.Contract(mainContractAddress, TokenCreateJson.abi, accounts[0].wallet); const tx = await mainContract.createNonFungibleTokenPublic(account.wallet.address, { value: BigInt('30000000000000000000'), ...Helper.GAS.LIMIT_5_000_000, }); + global.logger.debug(`Start creating NFT HTS Token`); const receipt = await tx.wait(); + global.logger.debug(`Finished creating NFT Token. Getting reeceipt=${JSON.stringify(receipt)}`); + + global.logger.debug(`Start polling for receipt`); await relay.pollForValidTransactionReceipt(receipt.hash); + global.logger.debug(`Finished polling for receipt`); const { tokenAddress } = receipt.logs.filter( (e) => e.fragment.name === RelayCalls.HTS_CONTRACT_EVENTS.CreatedToken, )[0].args; + global.logger.debug(`NFT HTS TOKEN ADDRESS ${tokenAddress}`); return tokenAddress; } before(async () => { + global.logger.debug(`Starting eth_getCode test suite`); mainContract = await Utils.deployContract(TokenCreateJson.abi, TokenCreateJson.bytecode, accounts[3].wallet); + global.logger.debug(`Finished deploying mainContract: ${JSON.stringify(mainContract)}`); mainContractAddress = mainContract.target as string; const accountWithContractIdKey = await servicesNode.createAccountWithContractIdKey( @@ -776,6 +786,7 @@ describe('@api-batch-2 RPC Server Acceptance Tests', function () { relay.provider, requestId, ); + NftHTSTokenContractAddress = await createNftHTSToken(accountWithContractIdKey); });