Questions tagged [erc-1155]
The erc-1155 tag has no summary.
241 questions
0 votes
1 answer
21 views
why add zero in ERC1155 URL
Why do we use {id} when using ERC1155? I heard that using {id} prepends 64 zeros, so why can't we just manage it like ERC721 with 3.json? I don’t really understand.
0 votes
2 answers
33 views
Where can I test a Solidity or fungible token code?
#Where can I test fungible token or solidity token online? #Where can I test fungible token or solidity token online? #DeFi/#NFT Project #DeFi/#NFT Project #DeFi/#NFT Project - Solidity on Smart ...
0 votes
0 answers
62 views
ERC1155: Transfer NFT to buyer not working
An item mint and save in contact ERC1155 works. But if I want to sell an NFt then I get an error: 1327-1f33d77b5a180a47.js:1 Buying NFT gives error: Error: execution reverted (unknown custom error) (...
1 vote
1 answer
57 views
balanceOf() returning an object and I don't know how to convert it into readable format
I'm trying to get return the balance of an account and it's a fairly simple function in Solidity: function getUserBalance(address user) public returns (uint256) { return balanceOf(user, ...
0 votes
1 answer
35 views
Obtaining transactions on Polygon for a specific ERC-1155 tokenID
I am interested in getting the transaction history for an ERC-1155 token by specifying the contract address and the tokenID. For example, saving all of the transactions from this token: https://...
0 votes
1 answer
36 views
How to transfer ETH to owner of an ERC1155 before mint?
Currently, I'm working on a project to mint an ERC1155 token. but I need to make a transfer before the mint. Imagine minting this NFT, the user should pay $10, so I have to convert $10 to the ETH ...
0 votes
0 answers
22 views
Does this AMM for NFTs makes any sense?
I have created an automated marked maker contract for NFTs. I think that it is best suitable for launching new NFT collections. Here is the contract source code: https://github.com/simplepools/...
0 votes
1 answer
189 views
Getting a "Calling an account which is not a contract" for when I'm trying to read the IDs non-fungible assets but keep getting BAD_DATA errors
I'm trying to build a blockchain NFT Marketplace app and two of the things I'm trying to do is getting the balance of tokens present from the user's account and finding the owner history for each of ...
0 votes
1 answer
164 views
Getting an error While uploading image folder on pinata using pinFromFS function in nodejs
I am uploading approx 2.3 GBi of folder to pinata using pinFromFS() now i am getting error given below: Error: write EPROTO at afterWriteDispatched (node:internal/stream_base_commons:160:15) ...
0 votes
1 answer
219 views
An ERC1155 token metadata is not visible in polygonscan and etherscan
I have deployed a basic ERC1155 importing the Openzeppelin libraries. Here is my smart contract. // SPDX-License-Identifier: MIT // Compatible with OpenZeppelin Contracts ^5.0.0 pragma solidity ^0.8....
0 votes
1 answer
826 views
Foundry Solidity Error: panic: array out-of-bounds access (0x32) while testing a batch mint function
I'm writing foundry tests for a function which batch mints erc1155 tokens for the users, but I'm getting a panic revert. The function I'm testing: function mintBatch( address to_, ...
0 votes
1 answer
49 views
Function is callable from Thirdweb Dashboard but not from the front end
I can call the function from the Thirdweb Dashboard and I get appropriate outputs but whenever I try calling it from the frontend I get a very weird error Here is the function: function userStakeInfo(...
0 votes
1 answer
71 views
Why does super._update work in 1 function but not the other?
I am trying to override the _update function in an ERC1155 contract. However I get the following compiler error on my code: Member "_update" not found or not visible after argument-...
0 votes
1 answer
52 views
How to exchange one nft for another from a different contract?
I have 2 ERC1155 contracts, and am looking to transfer nft2 into nft1's wallet upon checking wallet holds nft1, but not sure what I'm doing wrong. This is my nft1 contract: import "./NFT2.sol&...
0 votes
1 answer
22 views
new release of ERC1155SupplyUpgradeale has compilation issues
The new contracts lib from OZ, specifically ERC1155UspplyUpgradeable has compilation issues before even inheriting it in any child contract (check screenshot below) any idea why? or how to fix it? ...