diff --git a/site/src/lib/constants.ts b/site/src/lib/constants.ts index 031f4b4b83..3516f291c6 100644 --- a/site/src/lib/constants.ts +++ b/site/src/lib/constants.ts @@ -3,8 +3,8 @@ import ibcAbi from '$lib/abi/ibc.json'; export const UNION_CHAIN_ID = 'union-testnet-3'; export const MUNO_ERC20_ADDRESS = '0x4bbca3a0360476a8a4f8482b8558c919e0663485'; -export const IBC_ADDRESS = '0x100E44E3DD0349a60AB8C154Add0bE31a76C2CC7'; -export const UCS01_RELAY_CONTRACT = +export const UCS01_EVM_ADDRESS = '0x100E44E3DD0349a60AB8C154Add0bE31a76C2CC7'; +export const UCS01_UNION_ADDRESS = 'union15d0ne205wynlf33r44a2awtk74f5llgup25x69564h9964ysurds60xnjw'; export const ERC20_CONTRACT_ABI = erc20abi.abi; diff --git a/site/src/lib/transferDemo.ts b/site/src/lib/transferDemo.ts index 8225abc713..2ddce43ae8 100644 --- a/site/src/lib/transferDemo.ts +++ b/site/src/lib/transferDemo.ts @@ -21,7 +21,7 @@ import { SigningCosmWasmClient } from '@cosmjs/cosmwasm-stargate'; import { UNION_CHAIN_ID, ERC20_CONTRACT_ABI, - UCS01_RELAY_CONTRACT, + UCS01_UNION_ADDRESS, MUNO_ERC20_ADDRESS } from './constants'; @@ -183,7 +183,7 @@ export const sendUnoToEthereum = async () => { return cwClient.execute( uAccount.address, - UCS01_RELAY_CONTRACT, + UCS01_UNION_ADDRESS, { transfer: { channel: 'channel-12', diff --git a/site/src/lib/transferFromSepolia.ts b/site/src/lib/transferFromSepolia.ts index f1095f8030..dece9d92a3 100644 --- a/site/src/lib/transferFromSepolia.ts +++ b/site/src/lib/transferFromSepolia.ts @@ -11,7 +11,12 @@ import { import { ethers } from 'ethers'; import { get } from 'svelte/store'; -import { MUNO_ERC20_ADDRESS, ERC20_CONTRACT_ABI, IBC_ADDRESS, IBC_CONTRACT_ABI } from './constants'; +import { + MUNO_ERC20_ADDRESS, + ERC20_CONTRACT_ABI, + UCS01_EVM_ADDRESS, + IBC_CONTRACT_ABI +} from './constants'; export const approveUnoTransferToUnion = async () => { const eProvider = get(ethersProvider); @@ -19,7 +24,7 @@ export const approveUnoTransferToUnion = async () => { const eAddress = get(ethereumAddress); const contract = new ethers.Contract(MUNO_ERC20_ADDRESS, ERC20_CONTRACT_ABI, eSigner); - const tx = await contract.approve(IBC_ADDRESS, 100000); + const tx = await contract.approve(UCS01_EVM_ADDRESS, 100000); await tx.wait(); }; @@ -41,7 +46,7 @@ export const sendUnoToUnion = async () => { const erc20balance = await contract.balanceOf(eAddress); console.log(erc20balance); - const ibcContract = new ethers.Contract(IBC_ADDRESS, IBC_CONTRACT_ABI, eSigner); + const ibcContract = new ethers.Contract(UCS01_EVM_ADDRESS, IBC_CONTRACT_ABI, eSigner); // string calldata portId, // string calldata channelId,