Skip to content

Commit

Permalink
lint code;
Browse files Browse the repository at this point in the history
Signed-off-by: tcar <tcar121293@gmail.com>
  • Loading branch information
tcar121293 committed Mar 18, 2024
1 parent 3755c26 commit c7da2c0
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions migrations/2_deploy_contracts.js
Original file line number Diff line number Diff line change
Expand Up @@ -162,14 +162,16 @@ module.exports = async function (deployer, network) {
}
}

for(let fee of currentNetworkConfig.fee) {
for(const fee of currentNetworkConfig.fee) {
try{
console.log(`registering resource ${fee.resourceID} for destination domain ${fee.toDomain} using feeHandler: ${basicFeeHandlerInstance.address}`)
console.log(`registering resource ${fee.resourceID} for destination domain
${fee.toDomain} using feeHandler: ${basicFeeHandlerInstance.address}`)
if (fee.type == "basic") {
await feeRouterInstance.adminSetResourceHandler(fee.toDomain, fee.resourceID, basicFeeHandlerInstance.address)
await basicFeeHandlerInstance.changeFee(fee.toDomain, fee.resourceID, fee.feeAmount)
} else if (fee.type == "percentage") {
await feeRouterInstance.adminSetResourceHandler(fee.toDomain, fee.resourceID, percentageFeeHandlerInstance.address)
await feeRouterInstance.adminSetResourceHandler(
fee.toDomain, fee.resourceID, percentageFeeHandlerInstance.address)
await percentageFeeHandlerInstance.changeFee(fee.toDomain, fee.resourceID, fee.feeAmount)
}
}catch(err) {
Expand Down

0 comments on commit c7da2c0

Please sign in to comment.