Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BATM-6591: changed log when address is invalid for EGLD, ADA and BNB #926

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading