Skip to content

Commit

Permalink
Merge pull request #850 from TokenScript/feature/text-config
Browse files Browse the repository at this point in the history
added logic to default to evm when no blockchain is defined
  • Loading branch information
nicktaras committed Sep 28, 2023
2 parents df33d8d + a874418 commit ac990fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/client/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -305,8 +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
const defaultToEVMWhenNoBlockChainDefined = blockchain === 'evm' && issuer.onChain && !_blockchain
return solanaEnabled || ultraEnabled || evmEnabled || sociosEnabled || defaultToEVMWhenNoBlockChainDefined
const fallBackToEVM = _blockchain === 'evm' && !issuerBlockChain && !useOauth
return solanaEnabled || ultraEnabled || evmEnabled || sociosEnabled || fallBackToEVM
}).length > 0
)
}
Expand Down

0 comments on commit ac990fc

Please sign in to comment.