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

refactor: use clientConfig ethUrl for evmSlotValue and ozVotesStorageProof #62

Merged
merged 1 commit into from
Feb 19, 2024

Conversation

Sekhmet
Copy link
Member

@Sekhmet Sekhmet commented Feb 19, 2024

Summary

Predefined mapping was used initially, but as each networkConfig will have each own ethUrl we can use it as well (Starknet Goerli will be mapped to Ethereum goerli etc.).

How to test

  1. Update VITE_INFURA_API_KEY.
  2. Go to http://localhost:8080/#/sn:0x05702362b68a350c1cae8f2a529d74fdbb502369ddcebfadac7e91da37636947/proposals
  3. See that it uses updated API key for Infura calls.

…Proof

Predefined mapping was used initially, but as each networkConfig
will have each own ethUrl we can use it as well (Starknet Goerli will
be mapped to Ethereum goerli etc.).
@Sekhmet Sekhmet self-assigned this Feb 19, 2024
@bonustrack
Copy link
Member

@Sekhmet Thanks! Can we make it so we can add a full node URL so it doesn't depend on Infura or specific provider?

@Sekhmet
Copy link
Member Author

Sekhmet commented Feb 19, 2024

Thanks! Can we make it so we can add a full node URL so it doesn't depend on Infura or specific provider?

We already use API key for starknet RPCs - we didn't end up with just URLs because we would have to have 3 environment variables (now it would be six -> double for each Starknet network). I can change it though if we want, will just be more annoying to handle all of those.

Copy link
Member

@bonustrack bonustrack left a comment

Choose a reason for hiding this comment

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

Ok we can figure out this another time. utACK

@Sekhmet Sekhmet merged commit ddcdc7f into master Feb 19, 2024
3 checks passed
@Sekhmet Sekhmet deleted the sekhmet/infura-url branch February 19, 2024 19:26
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