-
Notifications
You must be signed in to change notification settings - Fork 196
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(create-mud): set store address in PostDeploy script #1817
fix(create-mud): set store address in PostDeploy script #1817
Conversation
🦋 Changeset detectedLatest commit: 31a65d0 The changes in this PR will be included in the next version bump. This PR includes changesets to release 30 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
020785f
to
8154958
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thank you!
I think we might have to import import { StoreSwitch } from "@latticexyz/store/src/StoreSwitch.sol"; |
@@ -12,6 +12,9 @@ import { ChatNamespacedSystem } from "../src/systems/ChatNamespacedSystem.sol"; | |||
|
|||
contract PostDeploy is Script { | |||
function run(address worldAddress) external { | |||
// Specify a store so that you can use tables directly in PostDeploy | |||
StoreSwitch.setStoreAddress(worldAddress); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks like this is missing an import of StoreSwitch
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, fixed it. 🙏
… into set-store-address-in-postdeploy
fixes #1719