Skip to content

Commit

Permalink
rename var
Browse files Browse the repository at this point in the history
  • Loading branch information
poszu committed Feb 5, 2025
1 parent a7de03f commit 4e15062
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/node/models/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ func ParseBytes32Hex(b Bytes32Hex) ([32]byte, error) {
if len(b) != 64 {
return [32]byte{}, fmt.Errorf("invalid length: %d (expected 64)", len(b))
}
hash, err := hex.DecodeString(b)
decoded, err := hex.DecodeString(b)
if err != nil {
return [32]byte{}, fmt.Errorf("decoding hex: %w", err)
}
return [32]byte(hash), nil
return [32]byte(decoded), nil
}

func ParseNodeIDHex(id Bytes32Hex) (types.NodeID, error) {
Expand Down

0 comments on commit 4e15062

Please sign in to comment.