diff --git a/typescript-sdk/bun.lockb b/typescript-sdk/bun.lockb index 218330d8c4..db7cb3488a 100755 Binary files a/typescript-sdk/bun.lockb and b/typescript-sdk/bun.lockb differ diff --git a/typescript-sdk/patches/@cosmjs+tendermint-rpc+0.33.0.patch b/typescript-sdk/patches/@cosmjs+tendermint-rpc+0.33.0.patch index c665ebc107..aff8596225 100644 --- a/typescript-sdk/patches/@cosmjs+tendermint-rpc+0.33.0.patch +++ b/typescript-sdk/patches/@cosmjs+tendermint-rpc+0.33.0.patch @@ -1,5 +1,5 @@ diff --git a/node_modules/@cosmjs/tendermint-rpc/build/comet38/adaptor/responses.js b/node_modules/@cosmjs/tendermint-rpc/build/comet38/adaptor/responses.js -index e8b2dc3..b5c540a 100644 +index 29ec063..28a5c02 100644 --- a/node_modules/@cosmjs/tendermint-rpc/build/comet38/adaptor/responses.js +++ b/node_modules/@cosmjs/tendermint-rpc/build/comet38/adaptor/responses.js @@ -72,7 +72,7 @@ function decodePubkey(data) { @@ -11,7 +11,7 @@ index e8b2dc3..b5c540a 100644 return { algorithm, data: (0, encoding_1.fromBase64)((0, encodings_1.assertNotEmpty)(value)), -@@ -91,6 +91,11 @@ function decodePubkey(data) { +@@ -91,6 +91,16 @@ function decodePubkey(data) { algorithm: "secp256k1", data: (0, encoding_1.fromBase64)((0, encodings_1.assertNotEmpty)(data.value)), }; @@ -19,12 +19,17 @@ index e8b2dc3..b5c540a 100644 + return { + algorithm: "bn254", + data: (0, encoding_1.fromBase64)((0, encodings_1.assertNotEmpty)(data.value)), ++ }; ++ case "cometbft/PubKeyBn254": ++ return { ++ algorithm: "bn254", ++ data: (0, encoding_1.fromBase64)((0, encodings_1.assertNotEmpty)(data.value)), + }; default: throw new Error(`unknown pubkey type: ${data.type}`); } diff --git a/node_modules/@cosmjs/tendermint-rpc/build/tendermint37/adaptor/responses.js b/node_modules/@cosmjs/tendermint-rpc/build/tendermint37/adaptor/responses.js -index 5c9a406..0083a25 100644 +index 19df9de..c73c4ca 100644 --- a/node_modules/@cosmjs/tendermint-rpc/build/tendermint37/adaptor/responses.js +++ b/node_modules/@cosmjs/tendermint-rpc/build/tendermint37/adaptor/responses.js @@ -72,7 +72,7 @@ function decodePubkey(data) { @@ -36,7 +41,7 @@ index 5c9a406..0083a25 100644 return { algorithm, data: (0, encoding_1.fromBase64)((0, encodings_1.assertNotEmpty)(value)), -@@ -91,6 +91,11 @@ function decodePubkey(data) { +@@ -91,6 +91,16 @@ function decodePubkey(data) { algorithm: "secp256k1", data: (0, encoding_1.fromBase64)((0, encodings_1.assertNotEmpty)(data.value)), }; @@ -44,6 +49,11 @@ index 5c9a406..0083a25 100644 + return { + algorithm: "bn254", + data: (0, encoding_1.fromBase64)((0, encodings_1.assertNotEmpty)(data.value)), ++ }; ++ case "cometbft/PubKeyBn254": ++ return { ++ algorithm: "bn254", ++ data: (0, encoding_1.fromBase64)((0, encodings_1.assertNotEmpty)(data.value)), + }; default: throw new Error(`unknown pubkey type: ${data.type}`); diff --git a/typescript-sdk/playground/union-to-holesky.ts b/typescript-sdk/playground/union-to-holesky.ts index 4a542e0a52..bde68a634c 100644 --- a/typescript-sdk/playground/union-to-holesky.ts +++ b/typescript-sdk/playground/union-to-holesky.ts @@ -3,9 +3,9 @@ import "scripts/patch.ts" import { http } from "viem" import { holesky } from "viem/chains" import { parseArgs } from "node:util" +import { hexToBytes } from "#convert.ts" import { raise } from "#utilities/index.ts" import { consola } from "../scripts/logger.ts" -import { hexToBytes } from "#convert.ts" import { privateKeyToAccount } from "viem/accounts" import { DirectSecp256k1Wallet } from "@cosmjs/proto-signing" import { createUnionClient, type TransferAssetsParameters } from "#mod.ts" diff --git a/typescript-sdk/src/pfm.ts b/typescript-sdk/src/pfm.ts index ec00cfbac6..5b7cb5f960 100644 --- a/typescript-sdk/src/pfm.ts +++ b/typescript-sdk/src/pfm.ts @@ -48,9 +48,9 @@ export async function getHubbleChainDetails({ Error > > { - if (sourceChainId === destinationChainId) { - return err(new Error("Source and destination chains cannot be the same")) - } + // if (sourceChainId === destinationChainId) { + // return err(new Error("Source and destination chains cannot be the same")) + // } // const { data: chains } = await offchainQuery.chains({ // includeContracts: true,