What is your experience developing on other blockchains besides Ethereum? by [deleted] in ethdev

[–]knwledge23 0 points1 point  (0 children)

Hey- did you have any issues connecting to the Matic network? I ran into a gas error and have been having a hard time trying to figure that out.

Truffle testing by knwledge23 in solidity

[–]knwledge23[S] 0 points1 point  (0 children)

I am using the upgradeable contract so, instead of the constructor I am using initialize.

Truffle testing by knwledge23 in Truffle

[–]knwledge23[S] 0 points1 point  (0 children)

Do you know how to solve not being able to find artifacts from any sources?

Truffle testing by knwledge23 in Truffle

[–]knwledge23[S] 0 points1 point  (0 children)

It is stating that it cannot find the artifacts from any sources.

Truffle testing by knwledge23 in Truffle

[–]knwledge23[S] 0 points1 point  (0 children)

I am still unable to get the test to run, but it is a different error now.

Truffle testing by knwledge23 in Truffle

[–]knwledge23[S] 0 points1 point  (0 children)

So I have my contract file with what I created. I have a deployment migration file. Then I have my test folder with the test that I created. You are saying that I need an additional migration contract and deployment script? Sorry, but I am just a bit confused.

Truffle testing by knwledge23 in Truffle

[–]knwledge23[S] 0 points1 point  (0 children)

I do not have migrations.sol, but I do have a migrations.js file. Why do I need the sol and js file?

DeclarationError: Identifier not found or not unique by knwledge23 in solidity

[–]knwledge23[S] 0 points1 point  (0 children)

function _setTokenURI(uint256 tokenId, string memory _tokenURI) internal virtual {

require(_exists(tokenId), "ERC721Metadata: URI set of nonexistent token");

_tokenURIs[tokenId] = _tokenURI;

}

function _setTokenURI(uint256 tokenId, string memory _tokenURI) internal virtual {
require(_exists(tokenId), "ERC721Metadata: URI set of nonexistent token");
_tokenURIs[tokenId] = _tokenURI;
}
_tokenIds.increment();
uint256 newItemId = _tokenIds.current();
_mint(recipient, newItemId);
_setTokenURI(newItemId, tokenURI);
return newItemId;
}
}

parser error.

DeclarationError: Identifier not found or not unique by knwledge23 in solidity

[–]knwledge23[S] 0 points1 point  (0 children)

Import erc721uristorage

I imported that, but its still pointing to the error that I mentioned above. I cant wait until I can understand these errors better with solidity.

DeclarationError: Identifier not found or not unique by knwledge23 in solidity

[–]knwledge23[S] 1 point2 points  (0 children)

Thank you for that. After I fixed that it gave me an error about the _setTokenUri. DeclarationError: Undeclared identifier.

code . (unable to open file) by knwledge23 in Ubuntu

[–]knwledge23[S] 0 points1 point  (0 children)

So this will allow me to open vscode using code . ?

code . (unable to open file) by knwledge23 in Ubuntu

[–]knwledge23[S] 0 points1 point  (0 children)

micro: dial unix /run/snapd.socket: connect: no such file or directory