Skip to content

Commit

Permalink
fix nil pointer panic on slot details page
Browse files Browse the repository at this point in the history
  • Loading branch information
pk910 committed Dec 1, 2023
1 parent dbc0f11 commit 628b33c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions services/fnsignatures.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@ func (tss *TxSignaturesService) LookupSignatures(sigBytes []types.TxSignatureByt
for _, dbSigEntry := range db.GetTxFunctionSignaturesByBytes(unresolvedLookupBytes) {
var lookup *TxSignaturesLookup
for i, l := range unresolvedLookups {
if l == nil {
continue
}
if bytes.Equal(l.Bytes[:], dbSigEntry.Bytes) {
lookup = l
unresolvedLookups[i] = nil
Expand Down

0 comments on commit 628b33c

Please sign in to comment.