Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rfq: fix potential nil pointer panic #1232

Merged
merged 1 commit into from
Dec 3, 2024
Merged

rfq: fix potential nil pointer panic #1232

merged 1 commit into from
Dec 3, 2024

Conversation

guggero
Copy link
Member

@guggero guggero commented Dec 3, 2024

Fixes #1227.

Because we don't return if the error returned from the price oracle is non-nil, the asset rate might be nil in case we couldn't talk to the oracle. So we need to use fn.MaybeSome() instead of fn.Some() with a dereference.

Because we don't return if the error returned from the price oracle is
non-nil, the asset rate might be nil in case we couldn't talk to the
oracle. So we need to use fn.MaybeSome() instead of fn.Some() with a
dereference.
@guggero guggero requested review from ffranr and GeorgeTsagk December 3, 2024 11:11
@coveralls
Copy link

Pull Request Test Coverage Report for Build 12138436573

Details

  • 0 of 3 (0.0%) changed or added relevant lines in 1 file are covered.
  • 10 unchanged lines in 3 files lost coverage.
  • Overall coverage increased (+0.01%) to 40.877%

Changes Missing Coverage Covered Lines Changed/Added Lines %
rfq/negotiator.go 0 3 0.0%
Files with Coverage Reduction New Missed Lines %
tappsbt/create.go 2 53.22%
tapgarden/caretaker.go 4 68.87%
commitment/tap.go 4 83.91%
Totals Coverage Status
Change from base Build 12125319192: 0.01%
Covered Lines: 25786
Relevant Lines: 63082

💛 - Coveralls

@ffranr ffranr enabled auto-merge December 3, 2024 12:29
Copy link
Member

@Roasbeef Roasbeef left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🎉

@ffranr ffranr added this pull request to the merge queue Dec 3, 2024
Merged via the queue into main with commit 35552e5 Dec 3, 2024
18 checks passed
@guggero guggero deleted the bug-fixes branch December 3, 2024 15:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

[bug]: Terminal crashes
4 participants