From f314de95d3ef1890894401f467f7c8fd025a2383 Mon Sep 17 00:00:00 2001 From: lza_menace Date: Thu, 10 Mar 2022 21:56:08 -0800 Subject: [PATCH] use etherscan, not snowtrace --- tubbymemes/filters.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/tubbymemes/filters.py b/tubbymemes/filters.py index 168225b..e3dda86 100644 --- a/tubbymemes/filters.py +++ b/tubbymemes/filters.py @@ -21,11 +21,8 @@ def humanize(d): return arrow_get(d).humanize() @bp.app_template_filter() -def show_snowtrace(s) -> str: +def show_etherscan(s) -> str: """ Return proper links to Etherscan based upon the currently configured network. """ - if config.CONTRACT_TESTNET: - return f'https://testnet.snowtrace.io/search?f=0&q={s}' - else: - return f'https://snowtrace.io/search?f=0&q={s}' + return f'https://etherscan.io/address/{s}'