Skip to content

Commit f3c185c

Browse files
ci(release): publish latest release
1 parent c1702f0 commit f3c185c

4 files changed

Lines changed: 37 additions & 6 deletions

File tree

RELEASE

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
IPFS hash of the deployment:
2-
- CIDv0: `QmYwG3GSDkY9hZ18gka6dh5yg6mFfnLjHzehM4WyFAcFab`
3-
- CIDv1: `bafybeie5okij57tuv7cjnozjxr775ujthmcrif6b576ixsq3ronoodyi3q`
2+
- CIDv0: `QmWRE1gAkbA9MMVZpDdLPQyb53pFV1AbY1Uojpk9GHSmM6`
3+
- CIDv1: `bafybeidybf4xcdpahphw6yqvrjxyew5msztcexdmuasot6s3ycxvzazcqu`
44

55
The latest release is always mirrored at [app.uniswap.org](https://app.uniswap.org).
66

@@ -10,5 +10,5 @@ You can also access the Uniswap Interface from an IPFS gateway.
1010
Your Uniswap settings are never remembered across different URLs.
1111

1212
IPFS gateways:
13-
- https://bafybeie5okij57tuv7cjnozjxr775ujthmcrif6b576ixsq3ronoodyi3q.ipfs.dweb.link/
14-
- [ipfs://QmYwG3GSDkY9hZ18gka6dh5yg6mFfnLjHzehM4WyFAcFab/](ipfs://QmYwG3GSDkY9hZ18gka6dh5yg6mFfnLjHzehM4WyFAcFab/)
13+
- https://bafybeidybf4xcdpahphw6yqvrjxyew5msztcexdmuasot6s3ycxvzazcqu.ipfs.dweb.link/
14+
- [ipfs://QmWRE1gAkbA9MMVZpDdLPQyb53pFV1AbY1Uojpk9GHSmM6/](ipfs://QmWRE1gAkbA9MMVZpDdLPQyb53pFV1AbY1Uojpk9GHSmM6/)

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
web/5.153.1
1+
web/5.153.2

packages/uniswap/src/features/passkey/embeddedWalletDelegation.test.ts

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,37 @@ describe('embeddedWalletDelegation', () => {
244244
expect(mockPublicClient.sendRawTransaction).toHaveBeenCalledWith({ serializedTransaction: '0xabcdef1234567890' })
245245
})
246246

247+
it('encodes a missing call value as hex, not decimal, for the wallet encoding request', async () => {
248+
mockSign7702Auth.mockResolvedValue({
249+
contractAddress: MOCK_DELEGATION_ADDRESS,
250+
chainId: MOCK_CHAIN_ID,
251+
nonce: 6,
252+
r: '0xr',
253+
s: '0xs',
254+
yParity: 0,
255+
})
256+
mockSign7702Tx.mockResolvedValue('0xabcdef1234567890')
257+
258+
// ERC-20 transfer calldata carries no native value — matches the shape of a real token send.
259+
await sendDelegatedTransaction({
260+
...baseCtx,
261+
transactions: [{ to: '0xrecipient', data: '0xcalldata' }],
262+
delegationResult: {
263+
needsDelegation: true,
264+
contractAddress: MOCK_DELEGATION_ADDRESS,
265+
isWalletDelegatedToUniswap: false,
266+
},
267+
})
268+
269+
// The Trading API rejects `calls[].value` unless it matches /^0x[a-fA-F0-9]+$/ — a plain
270+
// decimal "0" 400s with RequestValidationError.
271+
expect(mockFetchWalletEncoding7702).toHaveBeenCalledWith(
272+
expect.objectContaining({
273+
calls: [expect.objectContaining({ value: '0x0' })],
274+
}),
275+
)
276+
})
277+
247278
it('uses standard self-call when already delegated', async () => {
248279
await sendDelegatedTransaction({
249280
...baseCtx,

packages/uniswap/src/features/passkey/embeddedWalletDelegation.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ export async function sendDelegatedTransaction(ctx: {
133133
from: account.address,
134134
to: tx.to ?? '',
135135
data: tx.data || '0x',
136-
value: tx.value ?? '0',
136+
value: tx.value ?? '0x0',
137137
chainId: Number(chainId),
138138
})),
139139
smartContractDelegationAddress: contractAddress,

0 commit comments

Comments
 (0)