fix: Mark SAV and Lending transactions as NotDelegable - #6489
Conversation
ximinez
left a comment
There was a problem hiding this comment.
I would not object if you added the "Trivial" label to this PR.
5a03e2d to
9faf4f2
Compare
It looks like some vault tests are related to delegation. I’ve removed them for now—please let me know if that’s okay with you. We can still add back if we want to support in the future. |
9faf4f2 to
8013a0a
Compare
| testTxRequireFeatures(FeatureBitset features) | ||
| { | ||
| testcase("test delegate disabled tx"); | ||
| using namespace jtx; | ||
|
|
||
| // map of tx and required feature. | ||
| // non-delegable tx are not included. | ||
| // NFTokenMint, NFTokenBurn, NFTokenCreateOffer, NFTokenCancelOffer, | ||
| // NFTokenAcceptOffer are not included, they are tested separately. |
There was a problem hiding this comment.
nit: would recommend adding a comment to this test to let others know that when they add a tx to this list that they make sure they have unit tested delegation with their feature
There was a problem hiding this comment.
I just forced a delegable tx count check in a separate test case, which will contain those comments:
483a545
Any change to either adding/deleting a delegable tx, will trigger failure.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #6489 +/- ##
=======================================
Coverage 79.8% 79.8%
=======================================
Files 862 862
Lines 67883 67883
Branches 7550 7547 -3
=======================================
+ Hits 54200 54203 +3
+ Misses 13683 13680 -3
🚀 New features to boost your workflow:
|
|
@ximinez should this go into Lending 1.1? If so, should the PR be against |
@Tapanito It could, but I don't think it needs to.
|
|
@ximinez Can we merge it if it looks good to you? |
NotDelegable
NotDelegableNotDelegable
New transactions should be marked as `NotDelegable`, until the interactions with other transactions have been fully tested and validated.
Any new transactions should be marked as
NotDelegable, unless the interactions are fully tested and confirmed.High Level Overview of Change
Context of Change
Type of Change
.gitignore, formatting, dropping support for older tooling)API Impact
libxrplchange (any change that may affectlibxrplor dependents oflibxrpl)