Merge pull request #5508

1c44e658 wallet2: reject standalone short payment IDs in monero: URI API (moneromooo-monero)
This commit is contained in:
Riccardo Spagni 2019-05-07 17:35:27 +02:00
commit 97cb1c9436
No known key found for this signature in database
GPG key ID: 55432DF31CCD4FCD
2 changed files with 3 additions and 7 deletions

View file

@ -144,9 +144,7 @@ TEST(uri, bad_payment_id)
TEST(uri, short_payment_id)
{
PARSE_URI("monero:" TEST_ADDRESS"?tx_payment_id=1234567890123456", true);
ASSERT_EQ(address, TEST_ADDRESS);
ASSERT_EQ(payment_id, "1234567890123456");
PARSE_URI("monero:" TEST_ADDRESS"?tx_payment_id=1234567890123456", false);
}
TEST(uri, long_payment_id)