Skip to content
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

feat(modules): standalone erc20 with external store #3094

Open
wants to merge 92 commits into
base: main
Choose a base branch
from

Conversation

TamaraRingas
Copy link

No description provided.

import { RESOURCE_TABLE } from "@latticexyz/store/src/storeResourceTypes.sol";
import { ResourceId, ResourceIdLib } from "@latticexyz/store/src/ResourceId.sol";

import { Store } from "../src/Store.sol";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there's a StoreMock you could use from the store package that does this (but we'd need to make sure its exported in the npm package, like MudTest in world package)

Copy link
Author

@TamaraRingas TamaraRingas Aug 31, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The StoreMock was missing several functions that are needed when using Store without a World, like getStaticField() and getDynamicField()

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

doesn't look like we're using those methods anymore?

either way, would be good to add those to the mock

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants