Skip to content

Commit

Permalink
fix: update explorer URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
agraebe authored and Alexander Graebe committed Jan 26, 2021
1 parent cd90d8c commit d691c09
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions packages/cli/src/argparse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ export const CLI_ARGS = {
' contract_function 1 0 "$PAYMENT"\n' +
' {\n' +
" txid: '0x2e33ad647a9cedacb718ce247967dc705bc0c878db899fdba5eae2437c6fa1e1'," +
" transaction: 'https://explorer.blockstack.org/txid/0x2e33ad647a9cedacb718ce247967dc705bc0c878db899fdba5eae2437c6fa1e1'" +
" transaction: 'https://explorer.stacks.co/txid/0x2e33ad647a9cedacb718ce247967dc705bc0c878db899fdba5eae2437c6fa1e1'" +
' }\n' +
'\n',
group: 'Account Management',
Expand Down Expand Up @@ -392,7 +392,7 @@ export const CLI_ARGS = {
' contract_function SPBMRFRPPGCDE3F384WCJPK8PQJGZ8K9QKK7F59X\n' +
' {\n' +
" txid: '0x2e33ad647a9cedacb718ce247967dc705bc0c878db899fdba5eae2437c6fa1e1'," +
" transaction: 'https://explorer.blockstack.org/txid/0x2e33ad647a9cedacb718ce247967dc705bc0c878db899fdba5eae2437c6fa1e1'" +
" transaction: 'https://explorer.stacks.co/txid/0x2e33ad647a9cedacb718ce247967dc705bc0c878db899fdba5eae2437c6fa1e1'" +
' }\n' +
'\n',
group: 'Account Management',
Expand Down Expand Up @@ -502,7 +502,7 @@ export const CLI_ARGS = {
' $ stx deploy_contract ./my_contract.clar my_contract 1 0 "$PAYMENT"\n' +
' {\n' +
" txid: '0x2e33ad647a9cedacb718ce247967dc705bc0c878db899fdba5eae2437c6fa1e1'," +
" transaction: 'https://explorer.blockstack.org/txid/0x2e33ad647a9cedacb718ce247967dc705bc0c878db899fdba5eae2437c6fa1e1'" +
" transaction: 'https://explorer.stacks.co/txid/0x2e33ad647a9cedacb718ce247967dc705bc0c878db899fdba5eae2437c6fa1e1'" +
' }\n' +
'\n',
group: 'Account Management',
Expand Down Expand Up @@ -2295,7 +2295,7 @@ export const CLI_ARGS = {
' $ stx send_tokens SP1P10PS2T517S4SQGZT5WNX8R00G1ECTRKYCPMHY 12345 1 0 "$PAYMENT"\n' +
' {\n' +
" txid: '0x2e33ad647a9cedacb718ce247967dc705bc0c878db899fdba5eae2437c6fa1e1'," +
" transaction: 'https://explorer.blockstack.org/txid/0x2e33ad647a9cedacb718ce247967dc705bc0c878db899fdba5eae2437c6fa1e1'" +
" transaction: 'https://explorer.stacks.co/txid/0x2e33ad647a9cedacb718ce247967dc705bc0c878db899fdba5eae2437c6fa1e1'" +
' }\n' +
' a9d387a925fb0ba7a725fb1e11f2c3f1647473699dd5a147c312e6453d233456\n' +
'\n' +
Expand Down Expand Up @@ -2362,7 +2362,7 @@ export const CLI_ARGS = {
' $ stx stack 10000000 20 16pm276FpJYpm7Dv3GEaRqTVvGPTdceoY4 136ff26efa5db6f06b28f9c8c7a0216a1a52598045162abfe435d13036154a1b01\n' +
' {\n' +
" txid: '0x2e33ad647a9cedacb718ce247967dc705bc0c878db899fdba5eae2437c6fa1e1'," +
" transaction: 'https://explorer.blockstack.org/txid/0x2e33ad647a9cedacb718ce247967dc705bc0c878db899fdba5eae2437c6fa1e1'" +
" transaction: 'https://explorer.stacks.co/txid/0x2e33ad647a9cedacb718ce247967dc705bc0c878db899fdba5eae2437c6fa1e1'" +
' }\n',
group: 'Account Management',
},
Expand Down
4 changes: 2 additions & 2 deletions packages/cli/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -892,8 +892,8 @@ export function answerToClarityValue(answer: any, arg: ClarityFunctionArg): Clar

export function generateExplorerTxPageUrl(txid: string, network: StacksNetwork): string {
if (network.version === TransactionVersion.Testnet) {
return `https://testnet-explorer.blockstack.org/txid/0x${txid}`;
return `https://explorer.stacks.co/txid/0x${txid}?chain=testnet`;
} else {
return `https://explorer.blockstack.org/txid/0x${txid}`;
return `https://explorer.stacks.co/txid/0x${txid}?chain=mainnet`;
}
}

1 comment on commit d691c09

@vercel
Copy link

@vercel vercel bot commented on d691c09 Jan 26, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.