Skip to content

Commit

Permalink
Merge branch 'staging-harmony' into production-harmony
Browse files Browse the repository at this point in the history
  • Loading branch information
DenSmolonski committed Jul 15, 2024
2 parents 3884a11 + 05e7a00 commit 9572370
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions apps/block_scout_web/lib/block_scout_web/chain.ex
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ defmodule BlockScoutWeb.Chain do
@page_size 50
@default_paging_options %PagingOptions{page_size: @page_size + 1}
@address_hash_len 40
@address_bech32_hash_len 42
@tx_block_op_hash_len 64

def default_paging_options do
Expand Down Expand Up @@ -89,6 +90,9 @@ defmodule BlockScoutWeb.Chain do
def from_param("0x" <> number_string = param) when byte_size(number_string) == @address_hash_len,
do: address_from_param(param)

def from_param("one" <> number_string = param) when byte_size(param) == @address_bech32_hash_len,
do: address_from_param(param)

def from_param("0x" <> number_string = param) when byte_size(number_string) == @tx_block_op_hash_len,
do: block_or_transaction_or_operation_from_param(param)

Expand Down

0 comments on commit 9572370

Please sign in to comment.