Skip to content

Commit b49f7ca

Browse files
drocekFilip Ocelka
authored andcommitted
BATM-6591: changed log when address is invalid for EGLD ADA and BNB (GENERALBYTESCOM#926)
1 parent c285791 commit b49f7ca

File tree

3 files changed

+21
-4
lines changed

3 files changed

+21
-4
lines changed

server_extensions_extra/src/main/java/com/generalbytes/batm/server/extensions/extra/bitcoin/BinanceCoinAddressValidator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public boolean isAddressValid(String address) {
3636
}
3737
return true;
3838
} catch (AddressFormatException e) {
39-
log.error("Cannot decode Bech32 address", e);
39+
log.info("Invalid BNB address format.");
4040
return false;
4141
}
4242
}

server_extensions_extra/src/main/java/com/generalbytes/batm/server/extensions/extra/cardano/CardanoAddressValidator.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*************************************************************************************
2-
* Copyright (C) 2014-2020 GENERAL BYTES s.r.o. All rights reserved.
2+
* Copyright (C) 2014-2024 GENERAL BYTES s.r.o. All rights reserved.
33
*
44
* This software may be distributed and modified under the terms of the GNU
55
* General Public License version 2 (GPL2) as published by the Free Software
@@ -43,7 +43,7 @@ public boolean isAddressValid(String address) {
4343
}
4444
return false;
4545
} catch (AddressFormatException e) {
46-
log.error("Cannot decode address", e);
46+
log.info("Invalid ADA address format.");
4747
return false;
4848
}
4949
}

server_extensions_extra/src/main/java/com/generalbytes/batm/server/extensions/extra/elrond/ElrondAddressValidator.java

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
1+
/*************************************************************************************
2+
* Copyright (C) 2014-2024 GENERAL BYTES s.r.o. All rights reserved.
3+
*
4+
* This software may be distributed and modified under the terms of the GNU
5+
* General Public License version 2 (GPL2) as published by the Free Software
6+
* Foundation and appearing in the file GPL2.TXT included in the packaging of
7+
* this file. Please note that GPL2 Section 2[b] requires that all works based
8+
* on this software must also be made publicly available under the terms of
9+
* the GPL2 ("Copyleft").
10+
*
11+
* Contact information
12+
* -------------------
13+
*
14+
* GENERAL BYTES s.r.o.
15+
* Web : http://www.generalbytes.com
16+
*
17+
************************************************************************************/
118
package com.generalbytes.batm.server.extensions.extra.elrond;
219

320
import com.generalbytes.batm.server.coinutil.AddressFormatException;
@@ -19,7 +36,7 @@ public boolean isAddressValid(String address) {
1936
}
2037
return true;
2138
} catch (AddressFormatException e) {
22-
log.error("Cannot decode Bech32 address", e);
39+
log.info("Invalid EGLD address format.");
2340
return false;
2441
}
2542
}

0 commit comments

Comments
 (0)