Skip to content

Commit

Permalink
style(cli/ensurefcuntions): add as Hex to match the typescript type…
Browse files Browse the repository at this point in the history
… check
  • Loading branch information
CrazyNorman committed Nov 4, 2023
1 parent c4cadff commit 4cffea0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/cli/src/deploy/ensureFunctions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 4cffea0

Please sign in to comment.