Skip to content

Commit

Permalink
Fix: tzkt link
Browse files Browse the repository at this point in the history
  • Loading branch information
aopoltorzhicky committed Jun 15, 2022
1 parent 0a94b16 commit 1abfdda
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/utils/tzkt.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import {
NetworkType,
} from "@airgap/beacon-sdk";

export function openTzktContract(contract) {
window.open(`https://${contract.network === 'mainnet' ? '' : `${contract.network}.`}tzkt.io/${contract.address}`, '_blank');
export function openTzktContract(network, contract) {
window.open(`https://${network === 'mainnet' ? '' : `${network}.`}tzkt.io/${contract.address}`, '_blank');
}

export default class TZKTBlockExplorer extends BlockExplorer {
Expand Down
2 changes: 1 addition & 1 deletion src/views/contract/Contract.vue
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ export default {
}
},
openInTzkt() {
openTzktContract(this.contract);
openTzktContract(this.network, this.contract);
},
requestSame() {
if (!this.isContract
Expand Down

0 comments on commit 1abfdda

Please sign in to comment.