fix: USDT strict address validation

This commit is contained in:
André Sá 2022-08-02 17:38:06 +01:00
parent eb63766039
commit bb369e48e2

View file

@ -67,7 +67,8 @@ function privateKey (account) {
}
function isStrictAddress (cryptoCode, toAddress, settings, operatorId) {
return cryptoCode === 'ETH' && util.isValidChecksumAddress(toAddress)
return checkCryptoCode(cryptoCode)
.then(() => util.isValidChecksumAddress(toAddress))
}
function getTxHashesByAddress (cryptoCode, address) {