diff --git a/packages/contracts/package.json b/packages/contracts/package.json index d133b7881..959c67857 100644 --- a/packages/contracts/package.json +++ b/packages/contracts/package.json @@ -57,4 +57,4 @@ "typescript": "^5.7.2", "viem": "^2.21.55" } -} \ No newline at end of file +} diff --git a/packages/ui/app/_components/xION/TxPopup.tsx b/packages/ui/app/_components/xION/TxPopup.tsx index 10c450ab1..ab6f493b2 100644 --- a/packages/ui/app/_components/xION/TxPopup.tsx +++ b/packages/ui/app/_components/xION/TxPopup.tsx @@ -57,18 +57,6 @@ function TxPopup({ // 'completed' | 'error' | 'pending' | 'unknown' // >('unknown'); - const temp = { - hasHistory: false, - amount: BigInt(0), - hash: '0x1234567890abcdef1234567890abcdef12345678', - fromChain: '34443', - toChain: '8453', - approvalHash: '0x123456789', - bridgeStatus: 'unknown', - status: false, - bridgingBlock: '21212' - }; - //-------------------------- for future use // const [mock] = useLocalStorage('bridgeTx', ''); // console.log(mock); @@ -118,9 +106,7 @@ function TxPopup({ Amount
- {Number( - formatEther(mock?.amount ?? temp.amount) - ).toLocaleString('en-US', { + {Number(formatEther(mock.amount)).toLocaleString('en-US', { maximumFractionDigits: 6 })} @@ -137,8 +123,8 @@ function TxPopup({
{( - Number(formatEther(mock?.amount ?? temp.amount)) - - Number(formatEther(mock?.amount ?? temp.amount)) * 0.01 + Number(formatEther(mock.amount)) - + Number(formatEther(mock.amount)) * 0.01 ).toLocaleString('en-US', { maximumFractionDigits: 3 })} @@ -155,11 +141,11 @@ function TxPopup({ Networks
- {chainsArr[+mock?.fromChain ?? temp.fromChain]} + {chainsArr[+mock.fromChain]} {'->'} - {chainsArr[+mock?.toChain ?? temp.toChain]} + {chainsArr[+mock.toChain]}
@@ -168,10 +154,10 @@ function TxPopup({
- {mock?.approvalHash ?? temp.approvalHash} + {mock.approvalHash}
@@ -180,10 +166,10 @@ function TxPopup({
- {mock?.hash ?? temp.hash} + {mock.hash}
@@ -202,7 +188,7 @@ function TxPopup({ TRACK