Skip to content

Commit

Permalink
Merge pull request #247 from rsksmart/staging
Browse files Browse the repository at this point in the history
Merge staging into develop
  • Loading branch information
ivegabr authored Nov 27, 2024
2 parents 8f87395 + b96a534 commit 6e8fdae
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/components/ContractCode.vue
Original file line number Diff line number Diff line change
Expand Up @@ -147,13 +147,12 @@ export default {
},
remixLink () {
const address = this.data.address
const remixUrl = 'https://remix.ethereum.org/'
// FUTURE: request Remix a dedicated backend key for Rootstock
const key = 'blockscout'
const backend = process.env.WS_URL.split('://')[1]
// backend url format: without protocol and trailing slash
// const backend = process.env.WS_URL // Staging behind VPN -> Remix cannot reach it
const backend = 'mock-backend.netlify.app/.netlify/functions/index' // TODO: Update with the correct backend once QA is done
const link = `https://remix.ethereum.org/?address=${address}&blockscout=${backend}`
return link
return `${remixUrl}?address=${address}&${key}=${backend}`
}
},
methods: {
Expand Down

0 comments on commit 6e8fdae

Please sign in to comment.