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 react demo app private key provider instantiated without chainNamespace in chainConfig #1716

Merged
merged 5 commits into from
Feb 9, 2024

Conversation

BboyStatix
Copy link
Contributor

@BboyStatix BboyStatix commented Feb 8, 2024

@BboyStatix BboyStatix self-assigned this Feb 8, 2024
@BboyStatix BboyStatix requested a review from shahbaz17 February 8, 2024 10:58
@@ -109,25 +109,20 @@ export const Web3AuthProvider: FunctionComponent<IWeb3AuthState> = ({ children,
try {
const currentChainConfig = CHAIN_CONFIG[chain];
let privateKeyProvider;
if (currentChainConfig.displayName === "Solana") {
if (currentChainConfig.chainNamespace === CHAIN_NAMESPACES.SOLANA) {
privateKeyProvider = new SolanaPrivateKeyProvider({ config: { chainConfig: currentChainConfig } });
Copy link
Contributor Author

Choose a reason for hiding this comment

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

priv key provider was being instantiated by chain config object in chainConfig.ts which did not have chainNamespace key resulting in error.

Copy link
Member

@chaitanyapotti chaitanyapotti left a comment

Choose a reason for hiding this comment

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

lgtm

@chaitanyapotti chaitanyapotti merged commit 780c210 into v8 Feb 9, 2024
2 checks passed
@chaitanyapotti chaitanyapotti deleted the fix/demo-app branch February 9, 2024 05:06
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