From 5d7a0652d41f69ee8a3b6b108d093e6aa4b05eba Mon Sep 17 00:00:00 2001 From: alvarius Date: Fri, 22 Sep 2023 15:42:08 +0100 Subject: [PATCH] Create honest-months-boil.md --- .changeset/honest-months-boil.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .changeset/honest-months-boil.md diff --git a/.changeset/honest-months-boil.md b/.changeset/honest-months-boil.md new file mode 100644 index 0000000000..613cd6e4e2 --- /dev/null +++ b/.changeset/honest-months-boil.md @@ -0,0 +1,18 @@ +--- +"@latticexyz/cli": major +"@latticexyz/world": major +--- + +The `registerRootFunctionSelector` function's signature was changed to accept a `string functionSignature` parameter instead of a `bytes4 functionSelector` parameter. +This change enables the `World` to store the function signatures of all registered functions in a `FunctionSignatures` offchain table, which will allow for the automatic generation of interfaces for a given `World` address in the future. + +```diff +IBaseWorld { + function registerRootFunctionSelector( + ResourceId systemId, +- bytes4 worldFunctionSelector, ++ string memory worldFunctionSignature, + bytes4 systemFunctionSelector + ) external returns (bytes4 worldFunctionSelector); +} +```