mirror of
https://github.com/jwinterm/tubbymemes.git
synced 2026-10-17 05:21:28 +02:00
use etherscan, not snowtrace
This commit is contained in:
@@ -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}'
|
||||
|
||||
Reference in New Issue
Block a user