Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6,732 changes: 4,144 additions & 2,588 deletions package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"test": "npm run build && vitest run --coverage"
},
"dependencies": {
"@hashgraph/hedera-wallet-connect": "2.0.4-canary.3ca04e9.0",
"@hashgraph/hedera-wallet-connect": "file:../hedera-wallet-connect",
"@hashgraph/sdk": "^2.72.0",
"@reown/appkit": "^1.8.4",
"@reown/appkit-adapter-ethers": "^1.8.4",
Expand Down
2 changes: 2 additions & 0 deletions src/V1App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ export function V1App() {

// V1 connection state
const v1Connection = useDAppConnectorV1()

const v1Methods = useV1Methods(
v1Connection.signers,
v1Connection.connector,
Expand All @@ -45,6 +46,7 @@ export function V1App() {
setNodes,
signedTransaction,
setSignedTransaction,
undefined, // onProgress - handled by MethodExecutor
)

// Get configuration from localStorage
Expand Down
13 changes: 10 additions & 3 deletions src/V2App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
HederaProvider,
HederaAdapter,
hederaNamespace,
} from '@hashgraph/hedera-wallet-connect'

Check failure on line 17 in src/V2App.tsx

View workflow job for this annotation

GitHub Actions / build

Cannot find module '@hashgraph/hedera-wallet-connect' or its corresponding type declarations.
import { JsonRpcProvider } from 'ethers'
import { metadata, networks, DEFAULT_RPC_URL } from './config'
import { ConfigurationModal } from './components/ConfigurationModal'
Expand Down Expand Up @@ -70,7 +70,6 @@
const providerOpts = {
projectId,
metadata,
logger: 'error' as const,
optionalNamespaces: {
// hashpack only uses the first namespace in the list
eip155: {
Expand Down Expand Up @@ -110,8 +109,6 @@

createAppKit({
adapters: [nativeHederaAdapter, eip155HederaAdapter],
logger: 'error' as const,
// @ts-expect-error universalProvider type compatibility
universalProvider,
projectId,
metadata,
Expand Down Expand Up @@ -201,12 +198,22 @@
: undefined

// Setup Hedera methods
// Create signer for HIP-1190 signTransactions method
const hederaSigner =
appKitConfig?.universalProvider?.session && hederaAccount
? appKitConfig.universalProvider.nativeProvider?.getSigner(
appKitConfig.universalProvider.session.topic,
)
: undefined

const { executeHederaMethod } = useHederaMethods(
appKitConfig?.universalProvider || ({} as HederaProvider),
hederaAccount || '',
setTransactionId,
setSignedMsg,
setNodes,
undefined, // onProgress - handled by MethodExecutor
hederaSigner,
)

// Setup Ethereum methods
Expand Down
Loading
Loading