You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The reason it seems, that it's neither a single source code file contract, nor a standard-json contract. We are not handling "Solidity Multiple files format" of Etherscan.
letsolcJsonInput;// SourceCode can be the Solidity code if there is only one contract file, or the json object if there are multiple filesif(contractHasMultipleFiles(sourceCodeObject)){solcJsonInput=parseMultipleFilesContract(sourceCodeObject);// Tell compiler to output metadatasolcJsonInput.settings.outputSelection["*"]["*"]=["metadata"];}else{constcontractPath=contractResultJson.ContractName+".sol";solcJsonInput=getSolcJsonInputFromEtherscanResult(contractResultJson,contractPath);}
Import from Etherscan fails for the contract: https://etherscan.io/address/0xB753548F6E010e7e680BA186F9Ca1BdAB2E90cf2#code
The reason it seems, that it's neither a single source code file contract, nor a standard-json contract. We are not handling "Solidity Multiple files format" of Etherscan.
TODO:
Add tests for parsing (if does not exist)
View in Huly HI-370
The text was updated successfully, but these errors were encountered: