-
Notifications
You must be signed in to change notification settings - Fork 395
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
Compiler error on Sourcify, not with truffle/hardhat #928
Comments
I figured out that the --standard-json produced by Sourcify differs from the one of Hardhat and Truffle. In particular the
|
Sourcify forces the output selection to be sourcify/services/core/src/utils/utils.ts Lines 188 to 197 in 6abfd5c
|
I find it weird to have a different behavior for the ouput. My understanding is we are just telling the compiler to give us specific information out of all things produced by the compiler. Can you try to narrow down to exactly which option level make the difference? Like what's inside the array |
I confirm that is about the "*". Tried replacing the outputSelections but nothing changed. |
My last clue would be checking if Sourcify uses In any case, I recommend saving both standard JSON inputs somewhere as we'll need them for debugging and to report this to Solidity. You can finally see if you can run the solc CLI with those JSONs. |
I'm using the solc CLI directly without passing through Sourcify Ok I'll check solc.js |
compiling with solc-js ( |
Here a gist containing all the files (except the solc compiler) https://gist.github.com/marcocastignoli/6011093fdab16749fe316597b6289424 |
sorry, one correction. The deployed contract on Meter was from this branch https://github.com/CryptoBlades/cryptoblades/tree/production-contracts commit hash a7180afc8bfdc74a5450cc1c6362cafd627a0f26 but there is very little/no difference from the branch mentioned earlier for the contract we are verifying |
Can you double check the address of the contract to be verified @xiaohanzhu? I see the address stated above is already verified and is a different contract https://scan.meter.io/address/0x4442df5910aded5fbbaf9ad9d6763f9e46e1cdb2 |
Taking this issue over @marcocastignoli This seems to be a compiler issue. Opened an issue in the Solidity repo ethereum/solidity#13985 Let's see what comes out of this but it seems we need to work around this by outputting all files like this always when we compile: "outputSelection": {
"*": {
"BurningManager": [
"evm.bytecode.object",
"evm.deployedBytecode.object",
"metadata"
]
}
} |
Our explorer's automatic matching capability had a bug. Now it is shown as unverified You could try 0x7740d99a135ca9dac4a00d407765e796151c8f40 as CharacterEarthTraitChangeConsumables The error message has also changed: |
Yes it's the same error. We started stringifying it before returning: 7292970 |
Closing this with the workaround mentioned. Will follow the opened Solidity issue. |
The error is:
View in Huly HI-358
The text was updated successfully, but these errors were encountered: