Merge pull request #6603 from blockscout/vb-add-to-mm-network-path-fix

Add to MM button explorer URL fix
pull/6606/head
Victor Baranov 2 years ago committed by GitHub
commit d1a737ff4a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      CHANGELOG.md
  2. 3
      apps/block_scout_web/assets/js/lib/add_chain_to_mm.js

@ -33,6 +33,7 @@
### Fixes ### Fixes
- [#6603](https://github.com/blockscout/blockscout/pull/6603) - Add to MM button explorer URL fix
- [#6512](https://github.com/blockscout/blockscout/pull/6512) - Allow gasUsed in failed internal txs; Leave error field for staticcall - [#6512](https://github.com/blockscout/blockscout/pull/6512) - Allow gasUsed in failed internal txs; Leave error field for staticcall
- [#6532](https://github.com/blockscout/blockscout/pull/6532) - Fix index creation migration - [#6532](https://github.com/blockscout/blockscout/pull/6532) - Fix index creation migration
- [#6473](https://github.com/blockscout/blockscout/pull/6473) - Fix state changes for contract creation transactions - [#6473](https://github.com/blockscout/blockscout/pull/6473) - Fix state changes for contract creation transactions

@ -8,8 +8,9 @@ export async function addChainToMM ({ btn }) {
const coinName = document.getElementById('js-coin-name').value const coinName = document.getElementById('js-coin-name').value
const subNetwork = document.getElementById('js-subnetwork').value const subNetwork = document.getElementById('js-subnetwork').value
const jsonRPC = document.getElementById('js-json-rpc').value const jsonRPC = document.getElementById('js-json-rpc').value
const path = process.env.NETWORK_PATH || '/'
const blockscoutURL = location.protocol + '//' + location.host + process.env.NETWORK_PATH const blockscoutURL = location.protocol + '//' + location.host + path
if (chainIDFromWallet !== chainIDFromInstance) { if (chainIDFromWallet !== chainIDFromInstance) {
await window.ethereum.request({ await window.ethereum.request({
method: 'wallet_addEthereumChain', method: 'wallet_addEthereumChain',

Loading…
Cancel
Save