-
Notifications
You must be signed in to change notification settings - Fork 88
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot build. #233
Comments
No matter what I type, I don't get a bin file. |
What OS are you using? |
@bitcoinmeetups github imports are not supported in web3, please download it locally (clone) and import as local files |
He's talking about these imports: import @r-gochain why wouldn't it support that if it's part of solidity now? https://docs.soliditylang.org/en/v0.8.10/path-resolution.html |
@treeder sure, let me check if we can support that in web3 (improve flattening algorithm or maybe just pass to solidity compiler as is) |
Or maybe we don't flatten and just let solc do it's thing? I know it's nice to see the flattened file for verification and things, but if solc handles it, why not just use it? |
Yes, I'm going to check whichever is easier |
solcjs doesn't work either, seems like there are only 2 options
|
Ahh, I see, didn't realize that was remix only. |
Hello,
I'm MB. A very nice and polite guy.
This is my contract:
// SPDX-License-Identifier: MIT pragma solidity 0.8.0;
import
"https://github.com/0xcert/ethereum-erc721/src
/contracts/tokens/nf-token-metadata.sol";
import
"https://github.com/0xcert/ethereum-erc721/src
/contracts/ownership/ownable.sol";
contract newNFT is NFTokenMetadata, Ownable {
constructor() {
nftName = "Synth NFT";
nftSymbol = "SYN";
}
function mint(address _to, uint256 _tokenId,
string calldata _uri) external onlyOwner {
super._mint(_to, _tokenId);
super._setTokenUri(_tokenId, _uri);
}
}
When I try to build using this command:
web3 contract build nft.sol
I get this error message:
ERROR: Cannot generate flattened file: read ./.: is a directory
The text was updated successfully, but these errors were encountered: