Fix API nonces

This commit is contained in:
Arnau B
2020-12-19 21:17:03 +01:00
parent 8a2df8de0d
commit a7394cdb2a
2 changed files with 6 additions and 1 deletions

View File

@@ -29,6 +29,7 @@ func (a *API) getAccount(c *gin.Context) {
}
apiAccount.Balance = apitypes.NewBigIntStr(account.Balance)
apiAccount.Nonce = account.Nonce
c.JSON(http.StatusOK, apiAccount)
}
@@ -67,6 +68,7 @@ func (a *API) getAccounts(c *gin.Context) {
return
}
apiAccounts[x].Balance = apitypes.NewBigIntStr(account.Balance)
apiAccounts[x].Nonce = account.Nonce
}
// Build succesfull response