Skip to content

Commit ba6c3fb

Browse files
committed
Remove link emoji
1 parent a056d28 commit ba6c3fb

2 files changed

Lines changed: 5 additions & 7 deletions

File tree

internal/transactions/transactions.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,6 @@ func (r *transactionResult) JSON() any {
9898
result["authorizers"] = fmt.Sprintf("%s", r.tx.Authorizers)
9999
result["payer"] = r.tx.Payer.String()
100100

101-
// Add block explorer link for mainnet and testnet
102101
if blockExplorerLink := r.getBlockExplorerLink(); blockExplorerLink != "" {
103102
result["view_on_block_explorer"] = blockExplorerLink
104103
}
@@ -150,9 +149,8 @@ func (r *transactionResult) String() string {
150149

151150
_, _ = fmt.Fprintf(writer, "ID\t%s\n", r.tx.ID())
152151

153-
// Add block explorer link for mainnet and testnet
154152
if blockExplorerLink := r.getBlockExplorerLink(); blockExplorerLink != "" {
155-
_, _ = fmt.Fprintf(writer, "🔗 View on Block Explorer\t%s\n", blockExplorerLink)
153+
_, _ = fmt.Fprintf(writer, "View on Block Explorer\t%s\n", blockExplorerLink)
156154
}
157155

158156
_, _ = fmt.Fprintf(writer, "Payer\t%s\n", r.tx.Payer.Hex())

internal/transactions/transactions_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -596,7 +596,7 @@ Payload (hidden, use --include payload)`, output.OkEmoji()), "\n"), result.Strin
596596
result := transactionResult{tx: tx, result: txResult, network: "mainnet"}
597597

598598
output := result.String()
599-
assert.Contains(t, output, "🔗 View on Block Explorer")
599+
assert.Contains(t, output, "View on Block Explorer")
600600
assert.Contains(t, output, "https://www.flowscan.io/tx/e913d1f3e431c7df49c99845bea9ebff9db11bbf25d507b9ad0fad45652d515f")
601601

602602
jsonResult := result.JSON()
@@ -610,7 +610,7 @@ Payload (hidden, use --include payload)`, output.OkEmoji()), "\n"), result.Strin
610610
result := transactionResult{tx: tx, result: txResult, network: "testnet"}
611611

612612
output := result.String()
613-
assert.Contains(t, output, "🔗 View on Block Explorer")
613+
assert.Contains(t, output, "View on Block Explorer")
614614
assert.Contains(t, output, "https://testnet.flowscan.io/tx/e913d1f3e431c7df49c99845bea9ebff9db11bbf25d507b9ad0fad45652d515f")
615615

616616
jsonResult := result.JSON()
@@ -624,7 +624,7 @@ Payload (hidden, use --include payload)`, output.OkEmoji()), "\n"), result.Strin
624624
result := transactionResult{tx: tx, result: txResult, network: "emulator"}
625625

626626
output := result.String()
627-
assert.NotContains(t, output, "🔗 View on Block Explorer")
627+
assert.NotContains(t, output, "View on Block Explorer")
628628

629629
jsonResult := result.JSON()
630630
jsonMap, ok := jsonResult.(map[string]any)
@@ -636,7 +636,7 @@ Payload (hidden, use --include payload)`, output.OkEmoji()), "\n"), result.Strin
636636
result := transactionResult{tx: tx, result: txResult, network: ""}
637637

638638
output := result.String()
639-
assert.NotContains(t, output, "🔗 View on Block Explorer")
639+
assert.NotContains(t, output, "View on Block Explorer")
640640

641641
jsonResult := result.JSON()
642642
jsonMap, ok := jsonResult.(map[string]any)

0 commit comments

Comments
 (0)