mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-05 16:57:53 +00:00
test: add unit test for redundant payment (#4860)
If the payee and payer are the same account, then the transaction fails in preflight with temREDUNDANT.
This commit is contained in:
@@ -1036,6 +1036,9 @@ public:
|
||||
// Fail in preflight
|
||||
env(pay(alice, bob, XRP(-1000)), ter(temBAD_AMOUNT));
|
||||
|
||||
// Fail in preflight
|
||||
env(pay(alice, alice, XRP(100)), ter(temREDUNDANT));
|
||||
|
||||
// Fail in preclaim
|
||||
env(noop(alice), fee(XRP(100000)), ter(terINSUF_FEE_B));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user