Skip to content
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

Fetch github sources #347

Closed
DeFiYaco opened this issue Jan 8, 2021 · 0 comments · Fixed by #353 or #359
Closed

Fetch github sources #347

DeFiYaco opened this issue Jan 8, 2021 · 0 comments · Fixed by #353 or #359

Comments

@DeFiYaco
Copy link
Contributor

DeFiYaco commented Jan 8, 2021

When library is imported in Remix, metadata contains github URL of that file. We can fetch it and compare its keccak to the one inside metadata file.

Example:

"https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/utils/EnumerableMap.sol": {
            "keccak256": "0xd56ced96976a99130de28a6adfb6d56e8073403a0d134fbab6428b568f12f337",
            "license": "MIT",
            "urls": [
                "bzz-raw://e6d5abf1220727cc3fed50b23e2a2ee09d6f877db380cab45d967b3d989822df",
"dweb:/ipfs/QmZU816XJg1jTZnvxsJE9bgwud2LRAjyvuWhnMCEjCKWiV"
]
}    

View in Huly HI-142

@FabijanC FabijanC linked a pull request Jan 21, 2021 that will close this issue
@DeFiYaco DeFiYaco linked a pull request Jan 30, 2021 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant