Skip to content

Commit

Permalink
default to evm when on chain config is provided and no blockchain def…
Browse files Browse the repository at this point in the history
…ined
  • Loading branch information
Nick Taras authored and Nick Taras committed Sep 28, 2023
1 parent 1bed54e commit 1642068
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/client/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,8 @@ export class Client {
const ultraEnabled = blockChainUsed && _blockchain === 'ultra' && typeof window.ultra !== 'undefined'
const evmEnabled = blockChainUsed && _blockchain === 'evm' && !issuer.oAuth2options && !useOauth
const sociosEnabled = blockChainUsed && _blockchain === 'evm' && issuer.oAuth2options && useOauth
return solanaEnabled || ultraEnabled || evmEnabled || sociosEnabled
const defaultToEVMWhenNoBlockChainDefined = blockchain === 'evm' && issuer.onChain && !_blockchain
return solanaEnabled || ultraEnabled || evmEnabled || sociosEnabled || defaultToEVMWhenNoBlockChainDefined
}).length > 0
)
}
Expand Down

0 comments on commit 1642068

Please sign in to comment.