From 4cffea0824182536611921cf1698a4dd21e13293 Mon Sep 17 00:00:00 2001 From: CrazyNorman Date: Sat, 4 Nov 2023 17:51:53 +0800 Subject: [PATCH] style(cli/ensurefcuntions): add `as Hex` to match the typescript type check --- packages/cli/src/deploy/ensureFunctions.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/cli/src/deploy/ensureFunctions.ts b/packages/cli/src/deploy/ensureFunctions.ts index 1667842599..75958047c0 100644 --- a/packages/cli/src/deploy/ensureFunctions.ts +++ b/packages/cli/src/deploy/ensureFunctions.ts @@ -56,13 +56,13 @@ export async function ensureFunctions({ encodedFunctionData = encodeFunctionData({ abi: worldAbi, functionName: "registerRootFunctionSelector", - args: [systemId, func.systemFunctionSignature, func.systemFunctionSelector], + args: [systemId as Hex, func.systemFunctionSignature, func.systemFunctionSelector], }); } else { encodedFunctionData = encodeFunctionData({ abi: worldAbi, functionName: "registerFunctionSelector", - args: [systemId, func.systemFunctionSignature], + args: [systemId as Hex, func.systemFunctionSignature], }); } return encodedFunctionData;