@latticexyz/world 2.2.21-98fc29ddfa9b5db0492165acd2c49a9862569878 → 2.2.21-a3d40511da735cf541ddc0131987685cdd2a6c8a
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/node.js +5 -1
- package/dist/node.js.map +1 -1
- package/package.json +9 -9
package/dist/node.js
CHANGED
@@ -266,11 +266,15 @@ function renderSystemLibrary(options) {
|
|
266
266
|
systemName,
|
267
267
|
namespace,
|
268
268
|
resourceId,
|
269
|
-
functions,
|
269
|
+
functions: functionsInput,
|
270
270
|
errors: systemErrors,
|
271
271
|
worldImportPath,
|
272
272
|
storeImportPath
|
273
273
|
} = options;
|
274
|
+
const functions = functionsInput.map((func) => ({
|
275
|
+
...func,
|
276
|
+
stateMutability: func.stateMutability.replace("payable", "")
|
277
|
+
}));
|
274
278
|
const imports = [
|
275
279
|
...systemImports,
|
276
280
|
{
|