Skip to content

Commit ea48fa0

Browse files
committed
test: assert evm_revert returns boolean
1 parent 2f70faf commit ea48fa0

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/types/eip1193.test-d.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,12 @@ test('test methods (strict)', async () => {
152152
}>({ method: 'eth_wagmi' })
153153
expectTypeOf<typeof x4>().toEqualTypeOf<number>()
154154

155+
const x5 = await request({
156+
method: 'evm_revert',
157+
params: ['0x1'],
158+
})
159+
expectTypeOf<typeof x5>().toEqualTypeOf<boolean>()
160+
155161
// @ts-expect-error
156162
request({ method: 'anvil_addCompilationResult' })
157163
// @ts-expect-error

0 commit comments

Comments
 (0)