second-state/smart-contract-search-engine

Update secondStateJS.js to process DApp versioning

tpmccallum opened this issue · 1 comments

Instead of hard coding in the DApp endpoint URL, use the new versioning data from the index to dynamically construct the DApp endoint URL.

For example, the original code (line 388 of secondStateJS.js)

var playUrl = "https://cybermiles.github.io/smart_contracts/FairPlay/v1/dapp/play.html?contract=" + value._source.contractAddress;

will need to change to include the version (v1) as a variable (in the same way that it currently handles the _source.contractAddress; this is easy)

This has been done, also the results will display the version to the user as a separate field.