mirror of
https://github.com/arnaucube/hermez-node.git
synced 2026-02-07 03:16:45 +01:00
Apply fix method description typos
Co-authored-by: Eduard S. <eduard@iden3.io>
This commit is contained in:
@@ -14,7 +14,7 @@ import (
|
|||||||
|
|
||||||
const NLEAFELEMS = 4
|
const NLEAFELEMS = 4
|
||||||
|
|
||||||
// Account is a struct that gives information of the holdings of an address for a specific token. Is the data structure that generates the Value stored in the leaf of the MerkleTree
|
// Account is a struct that gives information of the holdings of an address and a specific token. Is the data structure that generates the Value stored in the leaf of the MerkleTree
|
||||||
type Account struct {
|
type Account struct {
|
||||||
TokenID TokenID
|
TokenID TokenID
|
||||||
Nonce uint64 // max of 40 bits used
|
Nonce uint64 // max of 40 bits used
|
||||||
|
|||||||
@@ -139,7 +139,7 @@ func (s *StateDB) UpdateAccount(idx common.Idx, account *common.Account) error {
|
|||||||
return tx.Commit()
|
return tx.Commit()
|
||||||
}
|
}
|
||||||
|
|
||||||
// MTCreateAccount creates a new the Account in the StateDB for the given Idx,
|
// MTCreateAccount creates a new Account in the StateDB for the given Idx,
|
||||||
// and updates the MerkleTree, returning a CircomProcessorProof
|
// and updates the MerkleTree, returning a CircomProcessorProof
|
||||||
func (s *StateDB) MTCreateAccount(idx common.Idx, account *common.Account) (*merkletree.CircomProcessorProof, error) {
|
func (s *StateDB) MTCreateAccount(idx common.Idx, account *common.Account) (*merkletree.CircomProcessorProof, error) {
|
||||||
if s.mt == nil {
|
if s.mt == nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user