Skip to content

Commit

Permalink
feat: example wallet update
Browse files Browse the repository at this point in the history
  • Loading branch information
chenweigh committed Sep 24, 2024
1 parent c75fb14 commit f89c352
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions examples/example-wallet-react/src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,15 @@ const devConfig = {
redirect_uri: 'http://localhost:3000/',
client_id: '4gsmgur6gkp8u9ps8dlco3k7eo',
client_secret: 'ABC23',
app_id: 'apiautotest'
app_id: 'apiautotest',
pn_app_id: '40ad8524-f844-496d-8de2-50a8a322d6ba'
}
const stageConfig = {
redirect_uri: location.href.replace(/[?&]code=[^&]+/, ''),
client_id: '3094298453404953',
client_secret: 'mzmhYqcqDGdymblv5gb7s9OWcnYpH1ha',
app_id: '6c684e202700'
app_id: '6c684e202700',
pn_app_id: '9cd6a325-3082-4e98-8803-82a66cd9e86f'
}
let _env: Env = __EXAMPLE_ENV__ || Env.Dev
const variable = GET_QUERY_STRING('env')
Expand All @@ -42,7 +44,7 @@ if (variable === 'dev') {
const config = _env === Env.Staging ? stageConfig : devConfig
createRoot(document.getElementById('root')!).render(
// <StrictMode>
<XterioWalletProvider {...config} env={_env}>
<XterioWalletProvider {...config} env={_env} showOpenWalletIcon enableAuthInit>
<App />
</XterioWalletProvider>
// </StrictMode>
Expand Down
2 changes: 1 addition & 1 deletion xterio-wallet/src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const config: IXterioWalletContextProps = {
showOpenWalletIcon: true,
pn_app_id: '40ad8524-f844-496d-8de2-50a8a322d6ba',
transactionMode: SendTransactionMode.Gasless,
logLevel: 3
logLevel: 1
}
createRoot(document.getElementById('root')!).render(
// <StrictMode>
Expand Down

0 comments on commit f89c352

Please sign in to comment.