Skip to content

Commit

Permalink
Update .changeset/modern-stingrays-kneel.md
Browse files Browse the repository at this point in the history
  • Loading branch information
alvrs authored Oct 3, 2023
1 parent accfac5 commit 2572f5c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .changeset/modern-stingrays-kneel.md
Original file line number Diff line number Diff line change
Expand Up @@ -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));
```

0 comments on commit 2572f5c

Please sign in to comment.