Skip to content

Commit

Permalink
CU-86a23ccez - Fix Svelte Wallet Connect for TurboRepo
Browse files Browse the repository at this point in the history
  • Loading branch information
LeonardoDizConde committed Mar 27, 2024
1 parent d9368e3 commit 7f855a1
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 7f855a1

Please sign in to comment.