Skip to content
This repository has been archived by the owner on Nov 20, 2024. It is now read-only.

Commit

Permalink
Merge pull request #193 from hermeznetwork/fix/lower-case
Browse files Browse the repository at this point in the history
fix toLowerCase after set variable
  • Loading branch information
krlosMata authored Jun 30, 2021
2 parents f520694 + bee03a9 commit 8cc809e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tx-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ async function generateL2Transaction (tx, bjj, token) {
if (type === TxType.TransferToEthAddr) {
toHezEthereumAddress = tx.to
} else if (type === TxType.TransferToBJJ) {
toHezEthereumAddress = tx.toAuxEthAddr.toLowerCase() || INTERNAL_ACCOUNT_ETH_ADDR.toLowerCase()
toHezEthereumAddress = (tx.toAuxEthAddr || INTERNAL_ACCOUNT_ETH_ADDR).toLowerCase()
} else {
toHezEthereumAddress = null
}
Expand Down

0 comments on commit 8cc809e

Please sign in to comment.