Skip to content

Commit f067824

Browse files
committed
Merge branch 'main' into entrypoint-0.8
2 parents 1851ec2 + bbe56bf commit f067824

File tree

8 files changed

+19
-14
lines changed

8 files changed

+19
-14
lines changed

.changeset/kind-otters-teach.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"viem": patch
3+
---
4+
5+
**Experimental:** Updated EIP-5792 version to latest.

src/experimental/eip5792/actions/getCallsStatus.test.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ const getClient = ({
6666
id: params[0],
6767
receipts,
6868
status: 200,
69-
version: '1.0',
69+
version: '2.0.0',
7070
} satisfies WalletGetCallsStatusReturnType
7171
}
7272

@@ -138,7 +138,7 @@ test('default', async () => {
138138
"chainId": 1,
139139
"status": "success",
140140
"statusCode": 200,
141-
"version": "1.0",
141+
"version": "2.0.0",
142142
}
143143
`)
144144
expect(receipts!.length).toBe(3)

src/experimental/eip5792/actions/getCallsStatus.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export async function getCallsStatus<
6262
atomic = false,
6363
chainId,
6464
receipts,
65-
version = '1.0',
65+
version = '2.0.0',
6666
...response
6767
} = await client.request({
6868
method: 'wallet_getCallsStatus',

src/experimental/eip5792/actions/sendCalls.test.ts

+5-5
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ const getClient = <chain extends Chain | undefined = undefined>({
4747
id: params[0],
4848
status: 100,
4949
receipts: [],
50-
version: '1.0',
50+
version: '2.0.0',
5151
} satisfies WalletGetCallsStatusReturnType
5252

5353
const receipts = await Promise.all(
@@ -82,7 +82,7 @@ const getClient = <chain extends Chain | undefined = undefined>({
8282
id: params[0],
8383
status: 200,
8484
receipts,
85-
version: '1.0',
85+
version: '2.0.0',
8686
} satisfies WalletGetCallsStatusReturnType
8787
}
8888

@@ -207,7 +207,7 @@ test('default', async () => {
207207
"chainId": "0x1",
208208
"from": "0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266",
209209
"id": undefined,
210-
"version": "1.0",
210+
"version": "2.0.0",
211211
},
212212
],
213213
]
@@ -294,7 +294,7 @@ test('behavior: chain on client', async () => {
294294
"chainId": "0x1",
295295
"from": "0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266",
296296
"id": undefined,
297-
"version": "1.0",
297+
"version": "2.0.0",
298298
},
299299
],
300300
]
@@ -381,7 +381,7 @@ test('behavior: inferred account', async () => {
381381
"chainId": "0x1",
382382
"from": undefined,
383383
"id": undefined,
384-
"version": "1.0",
384+
"version": "2.0.0",
385385
},
386386
],
387387
]

src/experimental/eip5792/actions/sendCalls.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ export async function sendCalls<
8787
chain = client.chain,
8888
forceAtomic = false,
8989
id,
90-
version = '1.0',
90+
version = '2.0.0',
9191
} = parameters
9292

9393
if (typeof account_ === 'undefined')

src/experimental/eip5792/actions/waitForCallsStatus.test.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ const getClient = ({
4242
id: params[0],
4343
receipts: [],
4444
status: 100,
45-
version: '1.0',
45+
version: '2.0.0',
4646
} satisfies WalletGetCallsStatusReturnType
4747

4848
const receipts = await Promise.all(
@@ -76,7 +76,7 @@ const getClient = ({
7676
id: params[0],
7777
receipts,
7878
status: 200,
79-
version: '1.0',
79+
version: '2.0.0',
8080
} satisfies WalletGetCallsStatusReturnType
8181
}
8282

@@ -156,7 +156,7 @@ test('default', async () => {
156156
"chainId": 1,
157157
"status": "success",
158158
"statusCode": 200,
159-
"version": "1.0",
159+
"version": "2.0.0",
160160
}
161161
`)
162162
expect(receipts!.length).toBe(3)

src/experimental/eip5792/actions/writeContracts.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ test('default', async () => {
159159
"chainId": "0x1",
160160
"from": "0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266",
161161
"id": undefined,
162-
"version": "1.0",
162+
"version": "2.0.0",
163163
},
164164
],
165165
]

src/experimental/eip5792/decorators/eip5792.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ describe('smoke test', () => {
102102
],
103103
"status": "success",
104104
"statusCode": 200,
105-
"version": "1.0",
105+
"version": "2.0.0",
106106
}
107107
`)
108108
})

0 commit comments

Comments
 (0)