Skip to content

Commit

Permalink
linties
Browse files Browse the repository at this point in the history
Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
  • Loading branch information
SvenDowideit committed Jul 4, 2022
1 parent 36337ec commit 6947c0a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 22 deletions.
21 changes: 0 additions & 21 deletions src/renderer/nav/TokenPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ import CreateNewMintButton, {
} from '@/components/tokens/CreateNewMintButton';

import { logger } from '@/common/globals';
import MintTokenToButton from '@/components/tokens/MintTokenToButton';
import TransferTokenButton from '@/components/tokens/TransferTokenButton';

function TokenPage() {
const fromKey = useWallet();
Expand All @@ -36,16 +34,11 @@ function TokenPage() {
// TODO: this will come from main config...
const [mintList, updateMintList] = useState<sol.PublicKey[]>([]);
const [mintKey, updateMintKey] = useState<sol.PublicKey>();
// const [tokenSender, updateFunderATA] = useState<sol.PublicKey>();
const [tokenReceiver, updateTokenReceiver] = useState<sol.Keypair>();
const [ataReceiver, updateAtaReceiver] = useState<sol.PublicKey>();

const setMintPubKey = (pubKey: string | sol.PublicKey) => {
const key = new sol.PublicKey(pubKey);

updateMintKey(key);
// updateFunderATA(undefined);
updateAtaReceiver(undefined);
};
useEffect(() => {
if (status !== NetStatus.Running) {
Expand Down Expand Up @@ -90,20 +83,6 @@ function TokenPage() {
}
const myWallet = publicKey;

async function ensureReceiverAta() {
if (!myWallet) {
logger.info('no myWallet', myWallet);
return;
}
if (!mintKey) {
logger.info('no mintKey', mintKey);
return;
}
// Generate a new wallet to receive the newly minted token
const toWallet = sol.Keypair.generate();
updateTokenReceiver(toWallet);
}

async function closeMint() {
if (!myWallet) {
logger.info('no myWallet', myWallet);
Expand Down
1 change: 0 additions & 1 deletion src/renderer/wallet-adapter/web3.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import * as splToken from '@solana/spl-token';
import {
MINT_SIZE,
getMinimumBalanceForRentExemptMint,
createInitializeMintInstruction,
} from '@solana/spl-token';
import { WalletContextState } from '@solana/wallet-adapter-react';
import { SendTransactionOptions } from '@solana/wallet-adapter-base';
Expand Down

0 comments on commit 6947c0a

Please sign in to comment.