Skip to content

Commit

Permalink
chore: more debug logs for setupOFT task
Browse files Browse the repository at this point in the history
  • Loading branch information
xtools-at committed Mar 5, 2024
1 parent f7e7c75 commit 7f8b325
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tasks/setupOFT.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,13 @@ module.exports = async function ({ localContract, remoteContract, targetNetwork,
if (!minGas) {
if (TOKEN_CONFIG[targetNetwork] && TOKEN_CONFIG[targetNetwork][remoteContract] && TOKEN_CONFIG[targetNetwork][remoteContract].minGas) {
minGas = TOKEN_CONFIG[targetNetwork][remoteContract].minGas
console.log(`\nusing configured minGas of ${minGas} for ${targetNetwork}\n`)
} else {
minGas = targetNetwork.startsWith("beam") ? 10000000 : 100000
console.log(`\nusing default minGas of ${minGas} for ${targetNetwork}\n`)
}
} else {
console.log(`\nusing passed minGas of ${minGas} for ${targetNetwork}\n`)
}

console.log("\nsetting trusted remote...\n")
Expand All @@ -23,7 +27,7 @@ module.exports = async function ({ localContract, remoteContract, targetNetwork,
hre
)

console.log(`\nsetting min gas to ${targetNetwork} to ${minGas}...\n`)
console.log(`\nsetting min gas for ${targetNetwork} to ${minGas}...\n`)
await setMinDstGas(
{
contract: localContract,
Expand Down

0 comments on commit 7f8b325

Please sign in to comment.