fix: l-c import

This commit is contained in:
Sérgio Salgado 2021-02-04 16:44:07 +00:00 committed by Josh Harvey
parent 1dd16c2220
commit 0b5da0b78f
2 changed files with 2 additions and 1 deletions

View file

@ -68,6 +68,7 @@ function sendCoins (account, tx, settings, operatorId) {
}
function checkCryptoCode (cryptoCode) {
console.log('estou a entrar no checkCryptoCode do ETH com o valor ' + cryptoCode)
if (cryptoCode === 'ETH' || coins.utils.isErc20Token(cryptoCode)) return Promise.resolve()
return Promise.reject(new Error('cryptoCode must be ETH'))
}