-
Notifications
You must be signed in to change notification settings - Fork 202
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
--- | ||
"@latticexyz/world": major | ||
--- | ||
|
||
All `World` methods acting on namespaces as resources have been updated to use `ResourceId namespaceId` as parameter instead of `bytes14 namespace`. | ||
The reason for this change is to make it clearer when a namespace is used as resource, as opposed to being part of another resource's ID. | ||
|
||
```diff | ||
+ import { ResourceId } from "@latticexyz/store/src/ResourceId.sol"; | ||
|
||
IBaseWorld { | ||
- function registerNamespace(bytes14 namespace) external; | ||
+ function registerNamespace(ResourceId namespaceId) external; | ||
|
||
- function transferOwnership(bytes14 namespace, address newOwner) external; | ||
+ function transferOwnership(ResourceId namespaceId, address newOwner) external; | ||
|
||
- function transferBalanceToNamespace(bytes14 fromNamespace, bytes14 toNamespace, uint256 amount) external; | ||
+ function transferBalanceToNamespace(ResourceId fromNamespaceId, ResourceId toNamespaceId, uint256 amount) external; | ||
|
||
- function transferBalanceToAddress(bytes14 fromNamespace, address toAddress, uint256 amount) external; | ||
+ function transferBalanceToAddress(ResourceId fromNamespaceId, address toAddress, uint256 amount) external; | ||
} | ||
|
||
``` |