The Solidity Contract-Oriented Programming Language - By chatting here you agree to the https://github.com/ethereum/solidity/blob/develop/CODE_OF_CONDUCT.md
X2_metadata.json
when I compile your file and it has these settings: "settings": {
"compilationTarget": {
"X2.sol": "X2"
},
"evmVersion": "istanbul",
"libraries": {},
"optimizer": {
"enabled": false,
"runs": 200
},
"remappings": []
},
"metadata": { "useLiteralContent": true }
. So I think you gave me wrong file.
useLiteralContent
then you have to compile without that option locally too.
useLiteralContent
is enabled).
"metadata": { "useLiteralContent": true }
"urls": [
"bzz-raw://18a9cdadc2aab8996c84715151968e678fb99a17c65a414b3b751c200e3ac1f2",
"dweb:/ipfs/QmNuf4gscWZbshwLVDsdP7M7R5vy6Hix3HtTYs3offpLxK"
]
content
key disappeared.
solc-js
solc-js
?
var input = {
language: "Solidity",
settings: {
evmVersion: "istanbul",
libraries: {},
optimizer: {
enabled: false,
runs: 200,
},
remappings: [],
},
sources: {
"contracts/X2.sol": {
keccak256:
"0xce0fdd5edf018d11acf1b78c568bbc900cdec244bd35a41509cd34d20fa8d9c1",
urls: [
"bzz-raw://18a9cdadc2aab8996c84715151968e678fb99a17c65a414b3b751c200e3ac1f2",
"dweb:/ipfs/QmNuf4gscWZbshwLVDsdP7M7R5vy6Hix3HtTYs3offpLxK",
],
},
},
};
And got this error{
errors: [
{
component: 'general',
formattedMessage: 'Cannot import url ("bzz-raw://18a9cdadc2aab8996c84715151968e678fb99a17c65a414b3b751c200e3ac1f2"): File import callback not supported',
message: 'Cannot import url ("bzz-raw://18a9cdadc2aab8996c84715151968e678fb99a17c65a414b3b751c200e3ac1f2"): File import callback not supported',
severity: 'error',
type: 'IOError'
},
{
component: 'general',
formattedMessage: 'Cannot import url ("dweb:/ipfs/QmNuf4gscWZbshwLVDsdP7M7R5vy6Hix3HtTYs3offpLxK"): File import callback not supported',
message: 'Cannot import url ("dweb:/ipfs/QmNuf4gscWZbshwLVDsdP7M7R5vy6Hix3HtTYs3offpLxK"): File import callback not supported',
severity: 'error',
type: 'IOError'
}
],
sources: {}
}
contracts/X2.sol
key and add a content
key. Then put the file content under that key.
solc-js
develop team with their effort on a such a valuable project! :)