Skip to content

Commit

Permalink
BATM-6591: changed log when address is invalid for EGLD ADA and BNB (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
drocek authored and Filip Ocelka committed Sep 5, 2024
1 parent c285791 commit b49f7ca
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public boolean isAddressValid(String address) {
}
return true;
} catch (AddressFormatException e) {
log.error("Cannot decode Bech32 address", e);
log.info("Invalid BNB address format.");
return false;
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*************************************************************************************
* Copyright (C) 2014-2020 GENERAL BYTES s.r.o. All rights reserved.
* Copyright (C) 2014-2024 GENERAL BYTES s.r.o. All rights reserved.
*
* This software may be distributed and modified under the terms of the GNU
* General Public License version 2 (GPL2) as published by the Free Software
Expand Down Expand Up @@ -43,7 +43,7 @@ public boolean isAddressValid(String address) {
}
return false;
} catch (AddressFormatException e) {
log.error("Cannot decode address", e);
log.info("Invalid ADA address format.");
return false;
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
/*************************************************************************************
* Copyright (C) 2014-2024 GENERAL BYTES s.r.o. All rights reserved.
*
* This software may be distributed and modified under the terms of the GNU
* General Public License version 2 (GPL2) as published by the Free Software
* Foundation and appearing in the file GPL2.TXT included in the packaging of
* this file. Please note that GPL2 Section 2[b] requires that all works based
* on this software must also be made publicly available under the terms of
* the GPL2 ("Copyleft").
*
* Contact information
* -------------------
*
* GENERAL BYTES s.r.o.
* Web : http://www.generalbytes.com
*
************************************************************************************/
package com.generalbytes.batm.server.extensions.extra.elrond;

import com.generalbytes.batm.server.coinutil.AddressFormatException;
Expand All @@ -19,7 +36,7 @@ public boolean isAddressValid(String address) {
}
return true;
} catch (AddressFormatException e) {
log.error("Cannot decode Bech32 address", e);
log.info("Invalid EGLD address format.");
return false;
}
}
Expand Down

0 comments on commit b49f7ca

Please sign in to comment.