From 2572f5cb625704511c76ab06f1d1287c67b7e052 Mon Sep 17 00:00:00 2001 From: alvarius Date: Tue, 3 Oct 2023 13:55:36 +0100 Subject: [PATCH] Update .changeset/modern-stingrays-kneel.md --- .changeset/modern-stingrays-kneel.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.changeset/modern-stingrays-kneel.md b/.changeset/modern-stingrays-kneel.md index acd166739d..ddb84373fb 100644 --- a/.changeset/modern-stingrays-kneel.md +++ b/.changeset/modern-stingrays-kneel.md @@ -9,9 +9,9 @@ To bring back the developer experience of calling systems from other sysyems wit ```diff - // Instead of calling the system via an external call to world... -- IBaseWorld(_world()).callMySystem(); +- uint256 value = IBaseWorld(_world()).callMySystem(); + // ...you can now use the `SystemSwitch` util. * // This works independent of whether used in a root system or non-root system. -+ SystemSwitch.call(abi.encodeCall(IBaseWorld.callMySystem, ()); ++ uint256 value = abi.decode(SystemSwitch.call(abi.encodeCall(IBaseWorld.callMySystem, ()), (uint256)); ```