Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 0 additions & 17 deletions src/pages/Balance/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -537,23 +537,6 @@ const Balance: React.FC<BalanceProps> = () => {

if (isSolToOraichain || isOraichainToSol) {
if (isOraichainToSol) {
const connection = new Connection(SOLANA_RPC, 'confirmed');
const tokenAccountPubkey = new PublicKey(solAddress);
console.log({
newToToken: newToToken.contractAddress,
solAddress
});

const tokenAccount = await getAssociatedTokenAddress(
new PublicKey(newToToken.contractAddress),
tokenAccountPubkey
);

const getTokenAccount = await connection.getAccountInfo(tokenAccount);
if ((getTokenAccount?.lamports || 0) === 0) {
throw generateError('The destination token account is not initalized! Please try with an active account!');
}

return handleTransferOraichainToSol({ fromToken: from, transferAmount: fromAmount });
}

Expand Down
Loading