Skip to content

Commit fc43fa9

Browse files
committed
Nestable NFT
1 parent 44a0508 commit fc43fa9

2 files changed

Lines changed: 1 addition & 7 deletions

File tree

index.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ <h1>
4646
</div>
4747
<div class="box collection br text-center">
4848
<div id="collection"></div>
49-
<div class="drop" id="drop"></div>
5049
<div class="btn-connect-wrapper">
5150
<button id="btnConnect" onclick="connectWallet();">
5251
Connect wallet

js/nestable.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,10 @@ async function rejectAllChildrenWrapper(parentId, pendingChildrenNum = 1, fieldI
5050
}
5151

5252
async function nestTransferFromWrapper(destinationId, fieldId = '', contractAddress = '') {
53-
console.log(destinationId, fieldId, contractAddress);
5453
btnLoader($(`#nestTransferFrom${fieldId}`), true);
5554

5655
const address = $(`#addressTransferFrom${fieldId}`).val() || contractAddress;
5756
const tokenId = $(`#tokenTransferFrom${fieldId}`).val() || $(`input[type="radio"][name="nest${fieldId}"]:checked`).val();
58-
console.log(address, tokenId);
5957

6058
if (checkInputAddress(address, fieldId) && checkInputToken(tokenId, fieldId)) {
6159
const status = await nestTransferFrom(address, nftContract.address, tokenId, destinationId, '0x');
@@ -187,13 +185,10 @@ async function nestTransferFrom(tokenAddress, toAddress, tokenId, destinationId,
187185
console.error('Child token is not nestable');
188186
return 'Child token is not nestable';
189187
}
190-
console.log(tokenAddress, toAddress, tokenId, destinationId, data);
191188

192189
try {
193190
const tx = await childNftContract.connect(provider.getSigner()).nestTransferFrom(walletAddress, toAddress, tokenId, destinationId, data);
194-
console.log(tx);
195-
const receipt = await tx.wait();
196-
console.log(receipt);
191+
await tx.wait();
197192

198193
await refreshState();
199194
return '';

0 commit comments

Comments
 (0)