Skip to content

Commit

Permalink
remove logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Lamperoyge committed Jun 30, 2023
1 parent 6d7acc4 commit ae7f08d
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 7 deletions.
1 change: 0 additions & 1 deletion wondrous-bot-admin/src/components/CreateTemplate/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,6 @@ const CreateTemplate = ({
handleMutation({ body });
} catch (err) {
const errors: any = {};
console.log(err, 'ERR')
if (err instanceof ValidationError) {
err.inner.forEach((error) => {
console.log(error.path, "ERR PATH");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,6 @@ const BatchPayments = ({ selectedPayments, paymentData, tokenIds, onPaymentCompl
setSnackbarAlertMessage("Success!");
setSnackbarAlertOpen(true);
} catch (error) {
console.log(error, "err");
let message = "Something went wrong";
if (error === "not_enough_balance") {
message = "You don't have enough balance to make this transaction";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,6 @@ const SingleWalletPayment = ({ paymentData , disabled = false, tokenId, onPaymen
try {
await handleAllowance({contractType: paymentData.contractType});
} catch (error) {
console.log(error, "error");
setSnackbarAlertMessage("You need to approve the token allowance first");
setSnackbarAlertOpen(true);
handleApproval({contractType: paymentData.contractType});
Expand Down Expand Up @@ -191,7 +190,6 @@ const SingleWalletPayment = ({ paymentData , disabled = false, tokenId, onPaymen
};
} else {
transactionData = handleTransfer({contractType: paymentData.contractType, iface, gasPrice, finalAmount, tokenId})
console.log(transactionData, 'transactionData')
}
try {
const transactionObj = await wonderWeb3.sendTransaction(transactionData);
Expand Down
1 change: 0 additions & 1 deletion wondrous-bot-admin/src/components/PaymentLedger/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ const PaymentLedger = ({ questId = null }) => {
return exportSubmissionPaymentCsv(data);
};

console.log(selectedPayments, 'selected payments')
return (
<>
<PageHeader
Expand Down
2 changes: 0 additions & 2 deletions wondrous-bot-admin/src/services/web3/tokenHelpers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,6 @@ export async function batchTransferERC1155(provider, tokenAddress: string, addre
}

export async function batchTransferERC721(provider, tokenAddress: string, addresses: string[], tokenIds: string[], chain = 137) {
console.log(tokenAddress, addresses, tokenIds, chain)
const prov = new ethers.providers.Web3Provider(provider);
const signer = prov.getSigner()
const batchTransferContractAddress = getMultisendAddress(ContractType.ERC721, chain)
Expand All @@ -201,7 +200,6 @@ export async function batchTransferERC20(provider, tokenAddress: string, address
// Call the balance function to check the balance
const tx = await batchTransferContract.batchTransferERC20(tokenAddress, addresses, amounts, { gasLimit: 2000000 });
// Return the balance value
console.log(tx, 'txx')
return tx;
} catch (error) {
console.error("Error occurred while checking ERC721 balance:", error);
Expand Down

0 comments on commit ae7f08d

Please sign in to comment.