diff --git a/src/background.ts b/src/background.ts index e38f0fe..4e6c9e6 100644 --- a/src/background.ts +++ b/src/background.ts @@ -1775,7 +1775,6 @@ export async function createBuyOrderTx({ crosschainAtInfo, isGateway, foreignBlo const address = wallet.address0; let message if(foreignBlockchain === 'PIRATECHAIN'){ - console.log('crosschainAtInfo', crosschainAtInfo, crosschainAtInfo[0].qortalAtAddress) message = { atAddress: crosschainAtInfo[0].qortalAtAddress, foreignKey: await getForeignKey(foreignBlockchain), @@ -1808,7 +1807,6 @@ export async function createBuyOrderTx({ crosschainAtInfo, isGateway, foreignBlo url = await createEndpoint('/crosschain/tradebot/respondmultiple') } - console.log('txn', txn, JSON.stringify(txn)) const responseFetch = await fetch( url, { diff --git a/src/qortalRequests/get.ts b/src/qortalRequests/get.ts index 02f97fc..53a6277 100644 --- a/src/qortalRequests/get.ts +++ b/src/qortalRequests/get.ts @@ -1894,6 +1894,10 @@ export const getWalletBalance = async ( }; const getPirateWallet = async (arrrSeed58)=> { + const isGateway = await isRunningGateway(); + if (isGateway) { + throw new Error("Retrieving PIRATECHAIN balance is not allowed through a gateway."); + } const bodyToString = arrrSeed58; const url = await createEndpoint(`/crosschain/arrr/walletaddress`); const response = await fetch(url, {