From 4ce27d2b95d48366769cdb0ffd29fe228e5d1903 Mon Sep 17 00:00:00 2001 From: alvarius Date: Thu, 21 Sep 2023 20:14:29 +0100 Subject: [PATCH] Create wild-nails-wonder.md --- .changeset/wild-nails-wonder.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 .changeset/wild-nails-wonder.md diff --git a/.changeset/wild-nails-wonder.md b/.changeset/wild-nails-wonder.md new file mode 100644 index 0000000000..3543079a4f --- /dev/null +++ b/.changeset/wild-nails-wonder.md @@ -0,0 +1,13 @@ +--- +"@latticexyz/world": minor +--- + +The `World` now has a `callBatch` method which allows multiple system calls to be batched into a single transaction. + +```solidity +import { SystemCallData } from "@latticexyz/world/modules/core/types.sol"; + +interface IBaseWorld { + function callBatch(SystemCallData[] calldata systemCalls) external returns (bytes[] memory returnDatas); +} +```