Skip to content

add support for RGB zero asset amount invoices#101

Merged
zoedberg merged 1 commit intoRGB-Tools:masterfrom
bitwalt:rgb-zero-amount-sendpayment-fix
Mar 2, 2026
Merged

add support for RGB zero asset amount invoices#101
zoedberg merged 1 commit intoRGB-Tools:masterfrom
bitwalt:rgb-zero-amount-sendpayment-fix

Conversation

@bitwalt
Copy link
Contributor

@bitwalt bitwalt commented Feb 25, 2026

This PR reproduce #100 and provide a fix for it

Copy link
Member

@nicbus nicbus left a comment

Choose a reason for hiding this comment

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

thanks, please address the requested changes

also, please squash into a single commit, as this is a new feature so doesn't need a test showing it's missing beforehand

@nicbus nicbus changed the title Rgb zero amount sendpayment fix add support for RGB zero asset amount invoices Feb 26, 2026
@bitwalt bitwalt force-pushed the rgb-zero-amount-sendpayment-fix branch from 1866139 to 3cf7a3d Compare February 26, 2026 10:35
@bitwalt
Copy link
Contributor Author

bitwalt commented Feb 26, 2026

Thanks for the review, suggested changes has been addressed

Copy link
Member

@nicbus nicbus left a comment

Choose a reason for hiding this comment

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

some more changes

@bitwalt bitwalt force-pushed the rgb-zero-amount-sendpayment-fix branch from 3cf7a3d to 571728f Compare February 27, 2026 10:16
@bitwalt
Copy link
Contributor Author

bitwalt commented Feb 27, 2026

Ok requested changes should be addressed now, let me know if its okay or some more cases are needed in the test. I included the case with asset_id and asset_amount both set to None that was missing

Copy link
Member

@zoedberg zoedberg left a comment

Choose a reason for hiding this comment

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

Thanks, LGTM except for the requested change. Please also rebase the PR on the updated master

)));
}
}
let rgb_amount = payload.asset_amount.ok_or(APIError::IncompleteRGBInfo)?;
Copy link
Member

Choose a reason for hiding this comment

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

please update the IncompleteRGBInfo message from For an RGB operation both asset_id and asset_amount must be set to a more generic For an RGB operation both the asset ID and amount are necessary

@bitwalt bitwalt force-pushed the rgb-zero-amount-sendpayment-fix branch from 571728f to 86cd708 Compare March 2, 2026 15:26
@bitwalt
Copy link
Contributor Author

bitwalt commented Mar 2, 2026

Rebased on updated master and updated IncompleteRGBInfo with the suggestion

Copy link
Member

@zoedberg zoedberg left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@zoedberg zoedberg merged commit bd0c110 into RGB-Tools:master Mar 2, 2026
12 checks passed
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.

3 participants