From 660af926dfab629c8d3c674c8d96e47b2e1c9f04 Mon Sep 17 00:00:00 2001 From: Minh Doan Date: Fri, 14 Dec 2018 18:51:39 -0800 Subject: [PATCH] add a-f chars for tx hash --- services/explorer/service.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/explorer/service.go b/services/explorer/service.go index 300bedd66..c63ef4eee 100644 --- a/services/explorer/service.go +++ b/services/explorer/service.go @@ -46,7 +46,7 @@ func (s *Service) Run() { s.router.Path("/blocks").Queries("from", "{[0-9]*?}", "to", "{[0-9]*?}").HandlerFunc(s.GetExplorerBlocks).Methods("GET") s.router.Path("/blocks").HandlerFunc(s.GetExplorerBlocks) - s.router.Path("/tx").Queries("id", "{[0-9A-F]*?}").HandlerFunc(s.GetExplorerTransaction).Methods("GET") + s.router.Path("/tx").Queries("id", "{[0-9A-Fa-f]*?}").HandlerFunc(s.GetExplorerTransaction).Methods("GET") s.router.Path("/tx").HandlerFunc(s.GetExplorerTransaction) // Do serving now. fmt.Println("Listening to:", ExplorerServicePort)