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
Currently, the getTree() function retrieves the file tree from repositoryV1, which forces you to run RepositoryV1Service (+ an http server) together with SourcifyDatabase. This prevents running sourcify with SourcifyDatabaseService alone or in combination with RepositoryV2Service.
In the current implementation, URLs are constructed using repositoryV1.serverUrl. We should directly use the https://sourcify.dev/server/repository/contracts/{full_match | partial_match}/{chain}/{address}/{filePath} API for URL construction.
The text was updated successfully, but these errors were encountered:
Ah ok, I thought we were reading the literal file tree from repositoryV1 like tree -L 2 /Users/kuzdogan/sourcify/repositoryV1/contracts/full_match/1/0x025030BdAa159f281cAe63873E68313a703725A5 and that's why I preferred not working on this now.
If we are using that for the URLs only and it's a simple fix, we can do this after #1637
Currently, the
getTree()
function retrieves the file tree fromrepositoryV1
, which forces you to run RepositoryV1Service (+ an http server) together with SourcifyDatabase. This prevents running sourcify with SourcifyDatabaseService alone or in combination withRepositoryV2Service
.In the current implementation, URLs are constructed using
repositoryV1.serverUrl
. We should directly use thehttps://sourcify.dev/server/repository/contracts/{full_match | partial_match}/{chain}/{address}/{filePath}
API for URL construction.The text was updated successfully, but these errors were encountered: