Skip to content

Commit

Permalink
fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
colinlyguo committed Dec 17, 2023
1 parent 3fc6534 commit 16d82f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bridge-history-api/internal/controller/fetcher/l2_fetcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,8 @@ func (c *L2MessageFetcher) updateL2WithdrawMessageProofs(ctx context.Context, l2
}

for i, messageHash := range messageHashes {
// AppendMessages is called for each message individually to obtain the correct proofs
// for the state of the trie after each message is appended.
// AppendMessages returns the proofs for the entire tree after all messages have been inserted,
// so it is called for each message individually to obtain the correct proofs.
proof := withdrawTrie.AppendMessages([]common.Hash{messageHash})
if err != nil {
log.Error("error generating proof", "messageHash", messageHash, "error", err)
Expand Down

0 comments on commit 16d82f5

Please sign in to comment.