fix: USDT strict address validation
This commit is contained in:
parent
eb63766039
commit
bb369e48e2
1 changed files with 2 additions and 1 deletions
|
|
@ -67,7 +67,8 @@ function privateKey (account) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function isStrictAddress (cryptoCode, toAddress, settings, operatorId) {
|
function isStrictAddress (cryptoCode, toAddress, settings, operatorId) {
|
||||||
return cryptoCode === 'ETH' && util.isValidChecksumAddress(toAddress)
|
return checkCryptoCode(cryptoCode)
|
||||||
|
.then(() => util.isValidChecksumAddress(toAddress))
|
||||||
}
|
}
|
||||||
|
|
||||||
function getTxHashesByAddress (cryptoCode, address) {
|
function getTxHashesByAddress (cryptoCode, address) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue