From 3b5418000ac0920f0f13e8aeaafb705b39b8a0bb Mon Sep 17 00:00:00 2001 From: sunhongtao Date: Thu, 25 Jan 2024 18:19:45 +0800 Subject: [PATCH] fix: set nonce default value --- blockchain/service/http_handler.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blockchain/service/http_handler.go b/blockchain/service/http_handler.go index fd68989..526689b 100644 --- a/blockchain/service/http_handler.go +++ b/blockchain/service/http_handler.go @@ -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