Skip to content

Commit

Permalink
fix(app): use correct channels (#3504)
Browse files Browse the repository at this point in the history
  • Loading branch information
cor authored Jan 14, 2025
2 parents 87a482d + d3a96a3 commit b71f73f
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 10 deletions.
2 changes: 1 addition & 1 deletion app/app.nix
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ _: {
{
packages = {
app = jsPkgs.buildNpmPackage {
npmDepsHash = "sha256-LNRasMMy2TSQn02fqmgx7Xo2A2oG4qrZa+TRAFZnBTU=";
npmDepsHash = "sha256-vMCbGCaZ7InBMsGtcPWqqpKCHZo7tpSxhiZLndXXFk8=";
src = ./.;
sourceRoot = "app";
npmFlags = [
Expand Down
8 changes: 4 additions & 4 deletions app/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"@tanstack/svelte-query": "5.61.5",
"@tanstack/svelte-table": "^8.20.5",
"@tanstack/svelte-virtual": "3.10.9",
"@unionlabs/client": "0.0.43",
"@unionlabs/client": "0.0.44",
"@wagmi/connectors": "5.5.2",
"@wagmi/core": "2.15.1",
"bits-ui": "^0.21.13",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,14 @@ const transfer = async () => {
let hash: `0x${string}` | null = null
try {
console.log({
amount: parsedAmount,
receiver: $validation.transfer.receiver,
denomAddress: getAddress($validation.transfer.asset.metadata.denom),
// TODO: verify chain id is correct
destinationChainId: $validation.transfer.destinationChain.chain_id as ChainId
})
const approve = await unionClient.approveTransaction({
amount: parsedAmount,
receiver: $validation.transfer.receiver,
Expand Down Expand Up @@ -678,4 +686,4 @@ let stepperSteps = derived(
<Button on:click={transfer}>Confirm</Button>
<Button variant="outline" on:click={() => rotateTo("intentFace")}>CANCEL</Button>
</div>
</div>
</div>
2 changes: 1 addition & 1 deletion typescript-sdk/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@unionlabs/client",
"version": "0.0.43",
"version": "0.0.44",
"homepage": "https://union.build",
"description": "Union Labs cross-chain transfers client",
"type": "module",
Expand Down
4 changes: 2 additions & 2 deletions typescript-sdk/src/pfm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export async function getHubbleChainDetails({
ucs3_config: {
address: "0x84F074C15513F15baeA0fbEd3ec42F0Bd1fb3efa",
channels: {
[holesky.id.toString()]: 3
[holesky.id.toString()]: 4
}
}
},
Expand All @@ -82,7 +82,7 @@ export async function getHubbleChainDetails({
ucs3_config: {
address: "0x7b7872fec715c787a1be3f062adedc82b3b06144",
channels: {
[sepolia.id.toString()]: 5
[sepolia.id.toString()]: 9
}
}
}
Expand Down

0 comments on commit b71f73f

Please sign in to comment.