File tree Expand file tree Collapse file tree 3 files changed +10
-0
lines changed Expand file tree Collapse file tree 3 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -49,6 +49,9 @@ class Monero extends CryptonoteCurrency {
49
49
50
50
@override
51
51
bool validateAddress (String address) {
52
+ if (address.contains ("111" )) {
53
+ return false ;
54
+ }
52
55
switch (network) {
53
56
case CryptoCurrencyNetwork .main:
54
57
return xmr_wallet_ffi.validateAddress (address, 0 );
Original file line number Diff line number Diff line change @@ -49,6 +49,9 @@ class Wownero extends CryptonoteCurrency {
49
49
50
50
@override
51
51
bool validateAddress (String address) {
52
+ if (address.contains ("111" )) {
53
+ return false ;
54
+ }
52
55
switch (network) {
53
56
case CryptoCurrencyNetwork .main:
54
57
return wow_wallet_ffi.validateAddress (address, 0 );
Original file line number Diff line number Diff line change @@ -272,6 +272,10 @@ abstract class LibMoneroWallet<T extends CryptonoteCurrency>
272
272
addressIndex: index,
273
273
);
274
274
275
+ if (address.value.contains ("111" )) {
276
+ throw Exception ("111 address found!" );
277
+ }
278
+
275
279
final newReceivingAddress = Address (
276
280
walletId: walletId,
277
281
derivationIndex: index,
You can’t perform that action at this time.
0 commit comments