Skip to content

Conversation

@okjodom
Copy link
Contributor

@okjodom okjodom commented Nov 9, 2025

tracks #13

Copilot AI review requested due to automatic review settings November 9, 2025 05:55
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR migrates the project from Fedimint v0.8.0 to v0.9.0. The migration includes dependency updates, new required crypto provider initialization, and enhanced gateway selection with automatic fallback support.

Key changes:

  • Updated all Fedimint dependencies from v0.8.0 to v0.9.0
  • Added crypto provider initialization required for v0.9.0 TLS operations
  • Made gateway_id optional in invoice and payment requests with automatic gateway selection fallback

Reviewed Changes

Copilot reviewed 5 out of 8 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
src/core/mod.rs Made gateway_id optional in request structs and implemented automatic gateway selection logic with fallback
src/bin/main.rs Added required crypto provider initialization call for v0.9.0
scripts/mprocs-nix-gateway.sh Removed obsolete script file
flake.nix Updated dependencies: Fedimint to v0.9.0, nixpkgs to unstable, flakebox to specific commit, Rust channel to "latest"
flake.lock Lock file updates for dependency changes
V0.9.0_MIGRATION_PLAN.md Added comprehensive migration plan documentation
Cargo.toml Updated all Fedimint dependency versions from 0.8.0 to 0.9.0
Cargo.lock Lock file updates for Cargo dependency changes

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

pub description: String,
pub expiry_time: Option<u64>,
pub gateway_id: PublicKey,
#[serde(default, skip_serializing_if = "Option::is_none")]
Copy link

Copilot AI Nov 9, 2025

Choose a reason for hiding this comment

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

The skip_serializing_if attribute is used here but the struct has #[derive(Debug, Deserialize)] without Serialize. Since this struct is only used for deserialization (incoming requests), skip_serializing_if has no effect and should be removed.

Suggested change
#[serde(default, skip_serializing_if = "Option::is_none")]
#[serde(default)]

Copilot uses AI. Check for mistakes.
pub amount_msat: Option<Amount>,
pub lnurl_comment: Option<String>,
pub gateway_id: PublicKey,
#[serde(default, skip_serializing_if = "Option::is_none")]
Copy link

Copilot AI Nov 9, 2025

Choose a reason for hiding this comment

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

The skip_serializing_if attribute is used here but the struct has #[derive(Debug, Deserialize)] without Serialize. Since this struct is only used for deserialization (incoming requests), skip_serializing_if has no effect and should be removed.

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant