Skip to content

Commit

Permalink
feat: allow bridge ton with inactive account flow from oraichain to ton
Browse files Browse the repository at this point in the history
  • Loading branch information
perfogic committed Aug 16, 2024
1 parent 365ca8d commit 298663e
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions components/page/bridge/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -402,17 +402,17 @@ const Bridge = () => {
validatePrice(token, amount);

// get the decentralized RPC endpoint
const endpoint = await getHttpEndpoint();
const client = new TonClient({
endpoint,
});
// const endpoint = await getHttpEndpoint();
// const client = new TonClient({
// endpoint,
// });

const isActiveDestinationAddress = await client.isContractDeployed(
Address.parse(destinationAddress)
);
if (!isActiveDestinationAddress) {
throw "Destination address has to be an active address!";
}
// const isActiveDestinationAddress = await client.isContractDeployed(
// Address.parse(destinationAddress)
// );
// if (!isActiveDestinationAddress) {
// throw "Destination address has to be an active address!";
// }

setLoading(true);

Expand Down

0 comments on commit 298663e

Please sign in to comment.