Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion packages/cli/src/commands/exchange/dollars.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ export default class ExchangeDollars extends BaseCommand {
await displaySendTx('approve', stableToken.approve(exchange.address, sellAmount.toFixed()))

const exchangeTx = exchange.exchange(sellAmount.toFixed(), minBuyAmount!.toFixed(), false)
await displaySendTx('exchange', exchangeTx)
// Set explciit gas based on github.com/celo-org/celo-monorepo/issues/2541
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Spelling.

await displaySendTx('exchange', exchangeTx, { gas: 300000 })
}
}
3 changes: 2 additions & 1 deletion packages/cli/src/commands/exchange/gold.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ export default class ExchangeGold extends BaseCommand {
await displaySendTx('approve', goldToken.approve(exchange.address, sellAmount.toFixed()))

const exchangeTx = exchange.exchange(sellAmount.toFixed(), minBuyAmount!.toFixed(), true)
await displaySendTx('exchange', exchangeTx)
// Set explciit gas based on github.com/celo-org/celo-monorepo/issues/2541
await displaySendTx('exchange', exchangeTx, { gas: 300000 })
}
}