You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This runs but there is a error logged in the console as shown below
node index.js
Error: Invalid name account provided
at G.retrieve (/Users/aadhi/Documents/github/bonfida-trial/node_modules/@bonfida/spl-name-service/dist/index.cjs:1:9672)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async ue (/Users/aadhi/Documents/github/bonfida-trial/node_modules/@bonfida/spl-name-service/dist/index.cjs:1:15017)
at async pe (/Users/aadhi/Documents/github/bonfida-trial/node_modules/@bonfida/spl-name-service/dist/index.cjs:1:15166)
at async exports.resolve (/Users/aadhi/Documents/github/bonfida-trial/node_modules/@bonfida/spl-name-service/dist/index.cjs:1:23924)
at async main (/Users/aadhi/Documents/github/bonfida-trial/index.js:11:17)
{
owner: PublicKey [PublicKey(HKKp49qGWXd639QsuH7JiLijfVW5UtCVY4s1n2HANwEA)] {
_bn: <BN: f26cb7227020209c2da674948f8f3c330ee4f9a386256bd14f37a6e0c567542b>
}
} HKKp49qGWXd639QsuH7JiLijfVW5UtCVY4s1n2HANwEA
As far as I understand no error is being thrown by resolve with this example, it's simply logged. As you have rightly pointed out, the resolution of a domain involves checking if the SOL record exists or not. In the case of bonfida.sol, it does not exist and this information is logged on this line which produces the output you have put above.
I agree that it might be confusing to log the error this way and we should probably replace the information that is logged to make things clearer.
I tried to use the
@bonfida/spl-name-service
package and tried running the example given in hereThis runs but there is a error logged in the console as shown below
Looks like this is thrown from here
sns-sdk/js/src/utils.ts
Lines 151 to 161 in e0f96e2
Specifically the line
produces a pubkey that doesn't exists.
sub
however is\x01SOL
which indeed matches with what is given in this guideWhat could be causing the problem here? Can you please help me out?
The text was updated successfully, but these errors were encountered: