Skip to content

Commit

Permalink
Merge pull request #346 from jhkimqd/jhilliard-ulxly
Browse files Browse the repository at this point in the history
fix: ci
  • Loading branch information
jhkimqd authored Aug 14, 2024
2 parents ab8b4c2 + b61153f commit 747aaf4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions cmd/ulxly/ulxly.go
Original file line number Diff line number Diff line change
Expand Up @@ -592,15 +592,13 @@ func (s *IMT) GetRoot(depositNum uint32) common.Hash {
// GetProof will return an object containing the proof data necessary for verification
func (s *IMT) GetProof(depositNum uint32) Proof {
node := common.Hash{}
// nolint:staticcheck // SA4006 ignore this!
sibling := common.Hash{}
size := depositNum + 1
currentZeroHashHeight := common.Hash{}

siblings := [TreeDepth]common.Hash{}
for height := 0; height < TreeDepth; height++ {
siblingDepositNum := getSiblingDepositNumber(depositNum, uint32(height))

sibling := currentZeroHashHeight
if _, hasKey := s.Branches[siblingDepositNum]; hasKey {
sibling = s.Branches[siblingDepositNum][height]
} else {
Expand Down

0 comments on commit 747aaf4

Please sign in to comment.