Skip to content

Commit

Permalink
bugfix: fixed the bignumber conversion to save on the database
Browse files Browse the repository at this point in the history
  • Loading branch information
gsoares85 committed May 23, 2024
1 parent a0cc01f commit 6e5a219
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion config/kovan.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
"bridge": "0x12ed69359919fc775bc2674860e8fe2d2b6a7b5d",
"federation": "0xa347438BC288f56Cb6083A79133e70DD2d1f6c2d",
"allowTokens": "0x92BF86334583909B60F9b798A9Dd7Debd899fEc4",
"host": "https://kovan.infura.io/v3/YOUR_INFURA_KEY",
"host": "https://kovan.infura.io/v3/***REMOVED***",
"fromBlock": 29761089
}
6 changes: 3 additions & 3 deletions src/lib/FederatorERC.ts
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,7 @@ export default class FederatorERC extends Federator {
from: receipt.from,
to: receipt.to,
cumulativeGasUsed: Number(receipt.cumulativeGasUsed),
amount: params.amount,
amount: params.amount.toString(),
originalTokenAddress: params.tokenAddress,
})
};
Expand Down Expand Up @@ -526,10 +526,10 @@ export default class FederatorERC extends Federator {
originalTokenAddress: params.tokenAddress,
sender: params.senderAddress,
receiver: params.receiver,
amount: params.amount,
amount: params.amount.toString(),
blockHash: params.blockHash,
transactionHash: params.transactionHash,
logIndex: params.logIndex,
logIndex: params.logIndex.toString(),
error: receipt.error,
status: receipt.status,
receipt: {...receipt},
Expand Down

0 comments on commit 6e5a219

Please sign in to comment.