Skip to content

Commit

Permalink
Merge pull request #107 from CityOfZion/CU-86a23ccez
Browse files Browse the repository at this point in the history
CU-86a23ccez - Fix Svelte Wallet Connect for TurboRepo
  • Loading branch information
raulduartep authored Mar 28, 2024
2 parents 396a2bb + 5045068 commit 027bf75
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@cityofzion/wallet-connect-sdk-core",
"comment": "Hotfix an error during the build process using SvelteKit and TurboRepo.",
"type": "patch"
}
],
"packageName": "@cityofzion/wallet-connect-sdk-core"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@cityofzion/wallet-connect-sdk-svelte",
"comment": "Hotfix an error during the build process using SvelteKit and TurboRepo.",
"type": "patch"
}
],
"packageName": "@cityofzion/wallet-connect-sdk-svelte"
}
5 changes: 4 additions & 1 deletion packages/wallet-connect-sdk-core/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export type NetworkVersion = GetVersionResult & {
/**
* An adapter of SignClient to work easily with Neon Wallet
*/
export default class WcSdk implements Neo3Invoker, Neo3Signer {
class WcSdk implements Neo3Invoker, Neo3Signer {
/**
* The WalletConnect Library
*/
Expand Down Expand Up @@ -705,4 +705,7 @@ export default class WcSdk implements Neo3Invoker, Neo3Signer {
}
}

// The WcSdk export is duplicated in two different ways to accommodate both CommonJS and Vite builds.
export { WcSdk }
export default WcSdk
export * from '@cityofzion/neon-dappkit-types'
2 changes: 1 addition & 1 deletion packages/wallet-connect-sdk-svelte/src/WcSdkStore.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { writable, type Writable, type Readable, derived } from 'svelte/store'
import SignClient from '@walletconnect/sign-client'
import WcSdk from '@cityofzion/wallet-connect-sdk-core'
import { WcSdk } from '@cityofzion/wallet-connect-sdk-core'
import type {
NetworkType,
Method,
Expand Down

0 comments on commit 027bf75

Please sign in to comment.