diff --git a/api/handler/v1/erc20.go b/api/handler/v1/erc20.go index 09d43aa..db6c890 100644 --- a/api/handler/v1/erc20.go +++ b/api/handler/v1/erc20.go @@ -180,7 +180,7 @@ func ERC20ModuleBalance(ctx *fasthttp.RequestCtx) { // TODO: consider moving this to a work or remove the container mutex val, err := blockchain.GetERC20Balance(v.Erc20, ethAddress) balance := "0" - if err == nil { + if err == nil && val != "" { balance = val }