From edb8974a5a85bc245afb71735d8eec82b845ddfd Mon Sep 17 00:00:00 2001 From: arnau <17317030+arnaucube@users.noreply.github.com> Date: Mon, 10 Aug 2020 16:45:34 +0200 Subject: [PATCH] Apply fix method description typos Co-authored-by: Eduard S. --- common/account.go | 2 +- db/statedb/statedb.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 {