Resolve conflicts and remove print stmts

This commit is contained in:
Jordan Prince 2021-04-26 23:57:18 -05:00
parent 4bb72e82e1
commit bb952ced4e
3 changed files with 2 additions and 14 deletions

View File

@ -151,7 +151,7 @@ export const mintNFT = async (
// Force wait for max confirmations
// await connection.confirmTransaction(txid, 'max');
await connection.getParsedConfirmedTransaction(txid, 'confirmed');
await connection.getParsedConfirmedTransaction(txid);
// this means we're done getting AR txn setup. Ship it off to ARWeave!
const data = new FormData();
@ -183,8 +183,7 @@ export const mintNFT = async (
const metadataFile = result.messages?.find(
m => m.filename == RESERVED_TXN_MANIFEST,
);
if (metadataFile?.transactionId && wallet.publicKey)
{
if (metadataFile?.transactionId && wallet.publicKey) {
const updateInstructions: TransactionInstruction[] = [];
const updateSigners: Account[] = [];

View File

@ -30,7 +30,6 @@ export const useAuction = (id: string) => {
useEffect(() => {
const auction = auctions[id];
if (auction) {
console.log(bidderMetadataByAuctionAndBidder);
const auctionView = processAccountsIntoAuctionView(
auction,
auctionManagers,

View File

@ -150,17 +150,7 @@ export function processAccountsIntoAuctionView(
bidderPotsByAuctionAndBidder[
auction.pubkey.toBase58() + '-' + myPayingAccount?.pubkey.toBase58()
];
if (
auction.pubkey.toBase58() ==
'CLxhAeuhz8KX3y8yEWHADtmTzE26ofAnd6j8zwMXjW9P'
) {
console.log(
'I found',
bidderMetadata,
myPayingAccount?.pubkey.toBase58(),
);
}
if (existingAuctionView && existingAuctionView.totallyComplete) {
// If totally complete, we know we arent updating anythign else, let's speed things up
// and only update the two things that could possibly change