diff --git a/common/account.go b/common/account.go index b8580ce..6e64a44 100644 --- a/common/account.go +++ b/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 diff --git a/db/statedb/statedb.go b/db/statedb/statedb.go index c737235..1718bf7 100644 --- a/db/statedb/statedb.go +++ b/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 {