-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: Signature verification failed #12
Comments
Thanks for opening this issue. I think there is an error with the parameters you give to /**
* Change the owner of a given name account.
*
* @param connection The solana connection object to the RPC node
* @param name The name of the name account
* @param newOwner The new owner to be set
* @param curentNameOwner the current name Owner
* @param nameClass The class of this name, if it exsists
* @param nameParent The parent name of this name, if it exists
* @param parentOwner Parent name owner
* @returns
*/
export declare function transferNameOwnership(connection: Connection, name: string, newOwner: PublicKey, nameClass?: PublicKey, nameParent?: PublicKey, parentOwner?: PublicKey): Promise<TransactionInstruction>;
|
I set the wallet.publickey as curentNameOwner |
There was an issue in the typedoc of the function, I think this is where the confusion was coming from 86243f4. Thanks for pointing this out! In your code it should: const ix = await transferNameOwnership(
connection,
domain_sol,
newOwner,
registry.class,
registry.parentName
); |
Is the domain you are trying to transfer a valid If it's a const ix = await transferNameOwnership(
connection,
domain_sol,
newOwner,
undefined,
ROOT_DOMAIN_ACCOUNT
); If it's a subdomain a and const ix = await transferNameOwnership(
connection,
domain_sol,
newOwner,
undefined,
parentKey
); If it's a subdomain a and const ix = await transferNameOwnership(
connection,
domain_sol,
newOwner,
undefined,
parentKey,
wallet.publicKey
); The class is |
Hello. |
If you look at the definition of the transfer instruction https://github.com/Bonfida/sns-sdk/blob/main/js/src/instructions.ts#L141 the only account that must be signing in your case is the owner of the domain. According to the error its signature is missing. So there is a mismatch between the domain you are passing, its owner and the signer of the transaction |
I solved the issues. |
I am going to make the script to transfer the domain
but I have "Error: Signature verification failed" issue
Please help me to fix this issue
this is my current code
const { pubkey } = await getDomainKey(domain_sol);
let anotherKeypair = Keypair.generate();
The text was updated successfully, but these errors were encountered: