@@ -143,17 +143,11 @@ def test_monero_uri(self):
143
143
assert res .uri .recipient_name == utf8string [0 ]
144
144
assert not 'unknown_parameters' in res or len (res .unknown_parameters ) == 0
145
145
146
- # standalone payment ids are supported but not recommended
147
- res = wallet .make_uri (address = address , recipient_name = utf8string [0 ], tx_description = utf8string [1 ], amount = 1000000000000 , payment_id = '1' * 64 )
148
- assert res .uri == 'monero:' + address + '?tx_amount=1.000000000000&recipient_name=' + quoted_utf8string [0 ] + '&tx_description=' + quoted_utf8string [1 ] + '&tx_payment_id=' + '1' * 64
149
-
150
- # in case of standalone payment id removal
151
- # ok = False
152
- # try:
153
- # res = wallet.make_uri(address = address, recipient_name = utf8string[0], tx_description = utf8string[1], amount = 1000000000000, payment_id = '1' * 64)
154
- # except:
155
- # ok = True
156
- # assert ok
146
+ # external payment ids are not supported anymore
147
+ ok = False
148
+ try : res = wallet .make_uri (address = address , recipient_name = utf8string [0 ], tx_description = utf8string [1 ], amount = 1000000000000 , payment_id = '1' * 64 )
149
+ except : ok = True
150
+ assert ok
157
151
158
152
# spaces must be encoded as %20
159
153
res = wallet .make_uri (address = address , tx_description = ' ' + utf8string [1 ] + ' ' + utf8string [0 ] + ' ' , amount = 1000000000000 )
@@ -202,9 +196,8 @@ def test_monero_uri(self):
202
196
'monero:42ey1afDFnn4886T7196doS9GPMzexD9gXpsZJDwVjeRVdFCSoHnv7KPbBeGpzJBzHRCAs9UxqeoyFQMYbqSWYTfJJQAWDm&tx_amount=10=&' ,
203
197
'monero:42ey1afDFnn4886T7196doS9GPMzexD9gXpsZJDwVjeRVdFCSoHnv7KPbBeGpzJBzHRCAs9UxqeoyFQMYbqSWYTfJJQAWDm&tx_amount=10=&foo=bar' ,
204
198
'monero:42ey1afDFnn4886T7196doS9GPMzexD9gXpsZJDwVjeRVdFCSoHnv7KPbBeGpzJBzHRCAs9UxqeoyFQMYbqSWYTfJJQAWDm?tx_amount=10&tx_amount=20' ,
205
- # Standalone payment ids are still supported, in case of complete functionality removal: uncomment this.
206
- # 'monero:42ey1afDFnn4886T7196doS9GPMzexD9gXpsZJDwVjeRVdFCSoHnv7KPbBeGpzJBzHRCAs9UxqeoyFQMYbqSWYTfJJQAWDm?tx_payment_id=1111111111111111',
207
- # 'monero:4BxSHvcgTwu25WooY4BVmgdcKwZu5EksVZSZkDd6ooxSVVqQ4ubxXkhLF6hEqtw96i9cf3cVfLw8UWe95bdDKfRQeYtPwLm1Jiw7AKt2LY?tx_payment_id=' + '1' * 64,
199
+ 'monero:42ey1afDFnn4886T7196doS9GPMzexD9gXpsZJDwVjeRVdFCSoHnv7KPbBeGpzJBzHRCAs9UxqeoyFQMYbqSWYTfJJQAWDm?tx_payment_id=1111111111111111' ,
200
+ 'monero:4BxSHvcgTwu25WooY4BVmgdcKwZu5EksVZSZkDd6ooxSVVqQ4ubxXkhLF6hEqtw96i9cf3cVfLw8UWe95bdDKfRQeYtPwLm1Jiw7AKt2LY?tx_payment_id=' + '1' * 64 ,
208
201
'monero:9ujeXrjzf7bfeK3KZdCqnYaMwZVFuXemPU8Ubw335rj2FN1CdMiWNyFV3ksEfMFvRp9L9qum5UxkP5rN9aLcPxbH1au4WAB' ,
209
202
'monero:5K8mwfjumVseCcQEjNbf59Um6R9NfVUNkHTLhhPCmNvgDLVS88YW5tScnm83rw9mfgYtchtDDTW5jEfMhygi27j1QYphX38hg6m4VMtN29' ,
210
203
'monero:7A1Hr63MfgUa8pkWxueD5xBqhQczkusYiCMYMnJGcGmuQxa7aDBxN1G7iCuLCNB3VPeb2TW7U9FdxB27xKkWKfJ8VhUZthF' ,
@@ -232,6 +225,7 @@ def test_monero_uri(self):
232
225
assert res .uri .amount == 239390140000000
233
226
assert res .unknown_parameters == [u'unknown=' + quoted_utf8string [0 ]], res
234
227
228
+
235
229
def test_monero_multi_uri (self ):
236
230
wallet = Wallet ()
237
231
addr1 = '42ey1afDFnn4886T7196doS9GPMzexD9gXpsZJDwVjeRVdFCSoHnv7KPbBeGpzJBzHRCAs9UxqeoyFQMYbqSWYTfJJQAWDm'
0 commit comments