Skip to content

Commit

Permalink
fix: use last version of the SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiorigam committed Jan 9, 2025
1 parent 9235532 commit 63abc9a
Show file tree
Hide file tree
Showing 8 changed files with 158 additions and 208 deletions.
Binary file modified .yarn/install-state.gz
Binary file not shown.
4 changes: 2 additions & 2 deletions examples/sample-react-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
"@vechain/dapp-kit": "workspace:^",
"@vechain/dapp-kit-react": "workspace:^",
"@vechain/dapp-kit-ui": "workspace:^",
"@vechain/sdk-core": "1.0.0-rc.1",
"@vechain/sdk-network": "1.0.0-rc.1",
"@vechain/sdk-core": "2.0.0-beta.1",
"@vechain/sdk-network": "2.0.0-beta.1",
"ethers": "6.13.2",
"react": "^18.2.0",
"react-dom": "^18.2.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/dapp-kit-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"@lit/react": "^1.0.1",
"@vechain/dapp-kit": "*",
"@vechain/dapp-kit-ui": "*",
"@vechain/sdk-core": "1.0.0-beta.32",
"@vechain/sdk-core": "2.0.0-beta.1",
"valtio": "1.11.2"
},
"devDependencies": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { addressUtils } from '@vechain/sdk-core';
import { Address } from '@vechain/sdk-core';
import type { DAppKitContext } from '../../../types';
import { getDomain } from './getDomain';
import { getAddress } from './getAddress';
Expand Down Expand Up @@ -27,7 +27,7 @@ export const fetchVechainDomain = async ({
};
}

const isValidAddress = addressUtils.isAddress(addressOrDomain);
const isValidAddress = Address.isValid(addressOrDomain);

if (isValidAddress) {
try {
Expand Down
4 changes: 2 additions & 2 deletions packages/dapp-kit-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@
"dependencies": {
"@vechain/dapp-kit": "workspace:^",
"@vechain/picasso": "2.1.1",
"@vechain/sdk-core": "1.0.0-rc.1",
"@vechain/sdk-network": "1.0.0-rc.1",
"@vechain/sdk-core": "2.0.0-beta.1",
"@vechain/sdk-network": "2.0.0-beta.1",
"@wagmi/core": "^1.4.5",
"@web3modal/ethereum": "^2.7.1",
"@web3modal/html": "^2.7.1",
Expand Down
9 changes: 5 additions & 4 deletions packages/dapp-kit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,15 @@
"watch": "yarn build --watch"
},
"dependencies": {
"@vechain/sdk-core": "1.0.0-rc.1",
"@vechain/sdk-errors": "1.0.0-rc.1",
"@vechain/sdk-network": "1.0.0-rc.1",
"@vechain/sdk-core": "2.0.0-beta.1",
"@vechain/sdk-errors": "2.0.0-beta.1",
"@vechain/sdk-network": "2.0.0-beta.1",
"@walletconnect/modal": "2.6.2",
"@walletconnect/sign-client": "2.11.3",
"@walletconnect/utils": "2.11.3",
"events": "^3.3.0",
"valtio": "1.11.2"
"valtio": "1.11.2",
"viem": "^2.22.5"
},
"devDependencies": {
"@types/react": "^18.2.28",
Expand Down
9 changes: 5 additions & 4 deletions packages/dapp-kit/src/classes/vechain-signer.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import type { vechain_sdk_core_ethers as ethers } from '@vechain/sdk-core';
import { JSONRPCInvalidParams } from '@vechain/sdk-errors';
import type {
AvailableVeChainProviders,
Expand All @@ -12,6 +11,7 @@ import type {
TransactionResponse,
} from '../types/requests';
import type { WalletManager } from './wallet-manager';
import { TypedDataDomain, TypedDataParameter } from 'viem';

class VeChainSignerDAppKit extends VeChainAbstractSigner {
private readonly walletManager: WalletManager;
Expand Down Expand Up @@ -89,9 +89,10 @@ class VeChainSignerDAppKit extends VeChainAbstractSigner {
}

async signTypedData(
_domain: ethers.TypedDataDomain,
_types: Record<string, ethers.TypedDataField[]>,
_value: Record<string, unknown>,
_domain: TypedDataDomain,
_types: Record<string, TypedDataParameter[]>,
_primaryType: string,
_message: Record<string, unknown>
): Promise<string> {
return Promise.reject(new Error('Method not implemented.'));
}
Expand Down
Loading

0 comments on commit 63abc9a

Please sign in to comment.