Hello,
I’m a beginner developing simple dapps using smart contracts. I am getting the below error while trying to deploy ‘MyNFToken.sol’ contract using the command ‘npx oz create’.
Error: Invalid number of parameters for "undefined". Got 1 expected 2!
I tried deploying other smart contracts using the above create command and it works so far. Please help me to resolve this issue.
Contract code:
pragma solidity ^0.4.20;
import "./NFTokenMetadata.sol";
import "../node_modules/@0xcert/ethereum-utils/contracts/ownership/Ownable.sol";
contract MyNFToken is NFTokenMetadata, Ownable {
address myContract;
function MyNFToken(string _name, string _symbol) public {
nftName = _name;
nftSymbol = _symbol;
}
function mint(address _owner, uint256[] _id)
external
onlyOwner
returns (uint256)
{
for (uint256 i = 0; i < _id.length; i++) {
super._mint(_owner, _id[i]);
}
}
function mint2(address _owner, uint256[] _id) external returns (uint256) {
for (uint256 i = 0; i < _id.length; i++) {
super._mint2(_owner, _id[i]);
}
}
function getb(address _owner) public returns (uint256[], uint256[]) {
return (super._getb(_owner));
}
function burn(address _owner, uint256 _tokenId) external //onlyOwner
{
super._burn(_owner, _tokenId);
}
}
Environment:
Truffle v4.1.10
Solidity:0.4.24
Node: 10.19.0
Npm: 6.14.4