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

Storage Multichain #39

Open
iv7dev opened this issue May 7, 2023 · 0 comments
Open

Storage Multichain #39

iv7dev opened this issue May 7, 2023 · 0 comments

Comments

@iv7dev
Copy link

iv7dev commented May 7, 2023

Hello, how could I make it use the storage in bnb or in polygon? I think that here is the question. I have tried several modifications without success.

/src/constants/index.js

const BSC = 56;
const MATIC = 137;
const MUMBAY = 80001;


const network = 'bsc';
let networkId;

if (process.env.NODE_ENV === 'production') {
  networkId = network === 'bsc' ? BSC : MATIC;
} else {
  networkId = MUMBAY;
}

export const STORAGE_NETWORK_ID = networkId;
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