Skip to content

Switch Chain Helper #336

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

Open
acedward opened this issue Mar 27, 2024 · 0 comments
Open

Switch Chain Helper #336

acedward opened this issue Mar 27, 2024 · 0 comments

Comments

@acedward
Copy link
Contributor

acedward commented Mar 27, 2024

async function switchChain(): Promise<boolean> {
const [chainName, config] = await GlobalConfig.mainEvmConfig();

SwitchChain gets the main game config by default, but adding/switching chains is required to interact with contracts (e.g., PRC-3 for minting/burning)

Helper functions as verifyChain also assume game-main chain is correct

verifyWalletChain = async (): Promise<boolean> => {

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

No branches or pull requests

1 participant