Skip to content

Commit

Permalink
fix(bridge-ui): msg value mapping (#17554)
Browse files Browse the repository at this point in the history
  • Loading branch information
KorbinianK authored Jun 11, 2024
1 parent 7173639 commit e58d41a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/bridge-ui/src/libs/relayer/RelayerAPIService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,8 @@ export class RelayerAPIService {

const tokenType: TokenType = _eventToTokenType(tx.eventType);

const value = tx.data.Message.Value > 0n ? BigInt(tx.amount) : 0n;

const transformedTx = {
status: tx.status,
amount: BigInt(tx.amount),
Expand All @@ -201,7 +203,7 @@ export class RelayerAPIService {
srcOwner: tx.data.Message.SrcOwner,
from: tx.data.Message.From,
gasLimit: tx.data.Message.GasLimit,
value: BigInt(tx.amount),
value,
srcChainId: BigInt(tx.data.Message.SrcChainId),
destChainId: BigInt(tx.data.Message.DestChainId),
fee: BigInt(tx.data.Message.Fee.toString()),
Expand Down

0 comments on commit e58d41a

Please sign in to comment.