Skip to content

Commit

Permalink
mainnet deploy fix
Browse files Browse the repository at this point in the history
  • Loading branch information
galekseev committed Apr 23, 2024
1 parent 0d6cdf2 commit 8024734
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions deploy/deploy_qr.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,9 @@ module.exports = async ({ deployments, getNamedAccounts, version, merkleRoot, me
console.log(`running deploy script: deploy script ${version} with parameters: ${merkleRoot} ${merkleHeight}`);
console.log('network id ', chainId);

const rewardToken = oneInchAddresses.find((token) => token.networkId === chainId);
if (rewardToken === undefined) {
const rewardToken = oneInchAddresses.find((token) => token.networkId == chainId); // eslint-disable-line eqeqeq

if (rewardToken === undefined || rewardToken.addr === undefined) {
console.log('No reward token mapped for the chain', chainId);
return;
}
Expand Down

0 comments on commit 8024734

Please sign in to comment.