Make multiply-local-eth-btc-price conform to prettier
@@ -3,7 +3,9 @@ const ETHBTCPriceFeedMock = artifacts.require("ETHBTCPriceFeedMock")
async function run() {
try {
if (process.argv.length <= 4 || process.argv[4] === "help") {
- console.log("run `truffle exec multiply-local-eth-btc-price.js <factor>` to update the current price by a factor of <factor>")
+ console.log(
+ "run `truffle exec multiply-local-eth-btc-price.js <factor>` to update the current price by a factor of <factor>",
+ )
} else if (isNaN(parseFloat(process.argv[4]))) {
console.log("<factor> must be a number.")
} else {
@@ -13,7 +15,9 @@ async function run() {
const factor = parseFloat(process.argv[4])
const newPrice = Math.round(currentPrice * factor)
await ethBtcPriceFeedMock.setValue(newPrice.toString())
- console.log(`Successfully updated the price by a factor of ${factor} from ${currentPrice} to ${newPrice}`)
+ console.log(
+ `Successfully updated the price by a factor of ${factor} from ${currentPrice} to ${newPrice}`,
+ )
}
process.exit(0)
} catch (ex) {
