Skip to content

Commit

Permalink
chore: replace empty string with 0 (#63)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mrsirdev authored Oct 11, 2023
1 parent a0e6bb3 commit 580206e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/handler/v1/erc20.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 580206e

Please sign in to comment.