Browse Source

Apply fix method description typos

Co-authored-by: Eduard S. <eduard@iden3.io>
feature/sql-semaphore1
arnau 4 years ago
committed by arnaucube
parent
commit
edb8974a5a
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      common/account.go
  2. +1
    -1
      db/statedb/statedb.go

+ 1
- 1
common/account.go

@ -14,7 +14,7 @@ import (
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 {
TokenID TokenID
Nonce uint64 // max of 40 bits used

+ 1
- 1
db/statedb/statedb.go

@ -139,7 +139,7 @@ func (s *StateDB) UpdateAccount(idx common.Idx, account *common.Account) error {
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
func (s *StateDB) MTCreateAccount(idx common.Idx, account *common.Account) (*merkletree.CircomProcessorProof, error) {
if s.mt == nil {

Loading…
Cancel
Save