Skip to content

Commit a9bc44a

Browse files
committed
fix: qr handling tests
1 parent ea8630e commit a9bc44a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/components/Global/DirectSendQR/__tests__/parseEip681.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ describe('parseEip681', () => {
66
const result = parseEip681(url)
77
expect(result).toEqual({
88
address: '0xfb6916095ca1df60bb79Ce92ce3ea74c37c5d359',
9-
amount: '2.014e18',
9+
amount: '2.014',
1010
tokenSymbol: 'ETH',
1111
})
1212
})
@@ -17,7 +17,7 @@ describe('parseEip681', () => {
1717
expect(result).toEqual({
1818
address: '0xfb6916095ca1df60bb79Ce92ce3ea74c37c5d359',
1919
chainId: '42',
20-
amount: '1.5e18',
20+
amount: '1.5',
2121
tokenSymbol: 'ETH',
2222
})
2323
})
@@ -28,7 +28,7 @@ describe('parseEip681', () => {
2828
const result = parseEip681(url)
2929
expect(result).toEqual({
3030
address: '0x8e23ee67d1332ad560396262c48ffbb01f93d052',
31-
amount: '1',
31+
amount: '0.000001',
3232
tokenAddress: '0x89205a3a3b2a69de6dbf7f01ed13b2108b2c43e7',
3333
})
3434
})
@@ -44,7 +44,7 @@ describe('parseEip681', () => {
4444
const result = parseEip681(url)
4545
expect(result).toEqual({
4646
address: '0xfb6916095ca1df60bb79Ce92ce3ea74c37c5d359',
47-
amount: '1e18',
47+
amount: '1',
4848
tokenSymbol: 'ETH',
4949
})
5050
})

0 commit comments

Comments
 (0)