Conversation
|
If only the most recent commit is unsigned, you can run:
If multiple commits are unsigned, you can run:
If you're new to commit signing, there are different ways to set it up: Sign commits with
|
9ea7f7a to
16c7217
Compare
There was a problem hiding this comment.
Pull request overview
Addresses issue #6785 by tightening RPC input validation for NFT offer lookups and adding unit tests to cover the bad-input paths.
Changes:
- Add
isString()validation fornft_idinnft_sell_offersandnft_buy_offershandlers. - Add new RPC unit tests covering missing params and non-string
nft_idinputs for both endpoints.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| src/xrpld/rpc/handlers/orderbook/NFTSellOffers.cpp | Adds nft_id type validation before hex parsing. |
| src/xrpld/rpc/handlers/orderbook/NFTBuyOffers.cpp | Adds nft_id type validation before hex parsing. |
| src/test/rpc/NFTSellOffers_test.cpp | New test coverage for invalid/missing parameters for nft_sell_offers. |
| src/test/rpc/NFTBuyOffers_test.cpp | New test coverage for invalid/missing parameters for nft_buy_offers (contains a wrong RPC method call in one case). |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Summary