mirror of
https://github.com/arnaucube/hermez-node.git
synced 2026-02-08 03:46:52 +01:00
Refactor api exits
This commit is contained in:
@@ -52,10 +52,10 @@ func getAccountCreationAuth(c *gin.Context) {
|
||||
}
|
||||
|
||||
type receivedAuth struct {
|
||||
EthAddr apitypes.StrHezEthAddr `json:"hezEthereumAddress" binding:"required"`
|
||||
BJJ apitypes.StrHezBJJ `json:"bjj" binding:"required"`
|
||||
Signature apitypes.StrEthSignature `json:"signature" binding:"required"`
|
||||
Timestamp time.Time `json:"timestamp"`
|
||||
EthAddr apitypes.StrHezEthAddr `json:"hezEthereumAddress" binding:"required"`
|
||||
BJJ apitypes.StrHezBJJ `json:"bjj" binding:"required"`
|
||||
Signature apitypes.EthSignature `json:"signature" binding:"required"`
|
||||
Timestamp time.Time `json:"timestamp"`
|
||||
}
|
||||
|
||||
func accountCreationAuthAPIToCommon(apiAuth *receivedAuth) *common.AccountCreationAuth {
|
||||
|
||||
Reference in New Issue
Block a user