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

fix: take address from cli for tictactoe frontend #275

Merged
merged 5 commits into from
Nov 28, 2024

Conversation

tabshaikh
Copy link
Contributor

Description
The tictactoe frontend uses a hardcoded address which may fail on changes. so adding a cli flag --address=.
How to run it:

npm run dev --address=0x123...
# or
npm run build --address=0x123...

#274

@tabshaikh tabshaikh requested a review from a team as a code owner November 19, 2024 07:23
Copy link
Contributor

@hamdiallam hamdiallam left a comment

Choose a reason for hiding this comment

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

Thanks for the contribution! This direction makes sense

examples/tictactoe/src/constants/tictactoe.ts Outdated Show resolved Hide resolved
@hamdiallam
Copy link
Contributor

ty!! will locally test this and merge in after getting off my flight :)

Copy link
Contributor

@hamdiallam hamdiallam left a comment

Choose a reason for hiding this comment

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

Can you remove the yarn.lock file

@hamdiallam
Copy link
Contributor

Looks good! Sorry one last request to also remove the package-lock.json file as well since we use pnpm for dependency management and not npm directly

otherwise good to go

@hamdiallam hamdiallam merged commit 4fc5f4c into ethereum-optimism:main Nov 28, 2024
3 of 4 checks passed
@hamdiallam
Copy link
Contributor

@tabshaikh npm_config style reading doesn't work for pnpm so superseding this functionality with env vars in #288

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