Skip to content

Commit

Permalink
Fix issue in callbacks
Browse files Browse the repository at this point in the history
  • Loading branch information
peterpolman committed Oct 14, 2024
1 parent 5ca2901 commit a47c78a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions apps/api/src/app/services/ERC721Service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,11 @@ async function deployCallback({ erc721Id }: TERC721DeployCallbackArgs, receipt:
throw new ExpectedEventNotFound('Transfer or OwnershipTransferred');
}

const erc721 = await ERC721.findById(erc721Id);
await erc721.updateOne({ address: toChecksumAddress(receipt.contractAddress) });
const erc721 = await ERC721.findByIdAndUpdate(
erc721Id,
{ address: toChecksumAddress(receipt.contractAddress) },
{ new: true },
);

// Deploy a wallet and make it a minter
let safe = await Wallet.findOne({
Expand Down

0 comments on commit a47c78a

Please sign in to comment.