Skip to content

Commit

Permalink
fix: set nonce default value
Browse files Browse the repository at this point in the history
  • Loading branch information
sunhongtao committed Jan 25, 2024
1 parent 995d58e commit 3b54180
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blockchain/service/http_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -1259,7 +1259,7 @@ func (h *HttpHandler) GetNonce1(ctx *gin.Context) {
nonce = gjson.Parse(res).Get("result").String()
nonce, _ = util.HexToInt(nonce)
} else if chain.GetChainCode(blockChainCode, "XRP", nil) {

nonce = "0"
} else {
h.Error(ctx, string(b), ctx.Request.RequestURI, fmt.Sprintf("blockchain:%v is not supported", blockChainCode))
return
Expand Down

0 comments on commit 3b54180

Please sign in to comment.