Skip to content

Commit 972a727

Browse files
committed
Pass zero address at to
1 parent b362c48 commit 972a727

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

script/checks/opcodes.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { type Hex, type PublicClient, toHex } from 'viem';
1+
import { type Hex, type PublicClient, toHex, zeroAddress } from 'viem';
22

33
type Opcode = number;
44
type CallError = { details: string };
@@ -27,7 +27,7 @@ export async function checkOpcodes(
2727

2828
async function checkOpcode(opcode: Opcode, client: PublicClient): Promise<boolean | 'unknown'> {
2929
try {
30-
await client.call({ data: toHex(opcode, { size: 1 }) });
30+
await client.call({ data: toHex(opcode, { size: 1 }), to: zeroAddress });
3131
return true; // Call succeeded so opcode is supported.
3232
} catch (e: unknown) {
3333
const err = e as CallError;

0 commit comments

Comments
 (0)