I got stuck during the deployment of the NFT contract, its been on pending for long .
I used Ropsten network for this tutorial.
Can anyone please help out.
I got stuck during the deployment of the NFT contract, its been on pending for long .
I used Ropsten network for this tutorial.
Can anyone please help out.
Hey @Talk2coded, hope you are well.
Would be great if you can provide more data about the issue, i advice to use rinkeby instead, keep filip’s steps closely.
Please share your code in the following way so we can review it
Carlos Z
here is my code, and ive tried using rinkeby until their website went offline. if i deploy. thi project after connecting my meta mask wallet, i get a pending message. for days.
pragma solidity ^0.8.0;
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC1155/ERC1155.sol";
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/access/Ownable.sol";
contract NFTContract is ERC1155, Ownable{
uint public constant ARTWORk = 0;
uint public constant PHOTO = 1;
constructor() ERC1155("https://b1ilowauvs9x.usemoralis.com/{id}.json"){
_mint(msg.sender, ARTWORk, 1,"");
_mint(msg.sender, PHOTO, 2,"");
}
function mint(address account, uint256 id, uint256 amount) public onlyOwner{
_mint(account, id, amount, "");
}
function burn(address account, uint256 id, uint256 amount) public {
require(msg.sender == account);
_burn(account, id, amount);
}
}
There might be an issue with your metamask, maybe you are selecting a low gas fee for the transaction, i recently just copy/paste your code and deploy it on remix using my metamask account.
Here is my tx: https://rinkeby.etherscan.io/tx/0x10fea9a46b13437e22f8346ecc49c3c917836b7967f97f34734c54b585df66dd
It should not take too long to deploy a contract, so maybe its a metamask issue, not sure, but you could try with another browser with a fresh new metamask account.
Carlos Z
how much eth can be enough to execute this transaction.
And I’m literally using Kovan and Ropsten, rinkeby seems to be offline for days.