I am working with solana and phantom wallet I have a wallet with a public key and I have it's secret phrase composed of 12 wordw. when I generate keypairs from the secret phrase I use :
const getKeyPair = (mnemomic) => {
const seed = bip39.mnemonicToSeedSync(mnemomic).slice(0, 32);
const Keypair = web3.Keypair.fromSeed(seed);
return Keypair;
};
the generated keypair has publicKey and privateKey , but when am checking my balance using the generated public key I find the balance is always 0 even when I try to airdrop sols using my code it's not getting in the account.
But if I check using my public key from phantom wallet I get the sols I have and if I want to airdrop sols they also proceed normally.
Why is my generated public key is not the same as the one in phantom wallet?