Skip to content

Commit

Permalink
Merge pull request #2603 from keep-network/cov-pools-quick-fix-transa…
Browse files Browse the repository at this point in the history
…ction-send-big-number-to-string

Change type of amount sent when depositing

We are changing the amount type from BigNumber to string because it looks like
it transactions doesn't work with the amount as BigNumber.

More info: web3/web3.js#2077
  • Loading branch information
r-czajkowski authored Sep 16, 2021
2 parents 74bd2d1 + 7b024c3 commit 9b33e52
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ const CoveragePoolPage = ({ title, withNewLabel }) => {

const onSubmitDepositForm = async (values, awaitingPromise) => {
const { tokenAmount } = values
const amount = KEEP.fromTokenUnit(tokenAmount)
const amount = KEEP.fromTokenUnit(tokenAmount).toString()
if (hasRiskManagerOpenAuctions) {
await openConfirmationModal(
{
Expand Down

0 comments on commit 9b33e52

Please sign in to comment.