Skip to content

[Bug]: Solana: buyRecord without processId registers name on the null ANT instead of auto-spawning #688

Description

@wolflows

I registered a permabuy ArNS name on Solana and it ended up bound to the null ANT (11111111111111111111111111111111), so it resolves to
nothing and I can't attach a target. I'd appreciate help recovering it.

What I did: I registered with the SDK (@ar.io/sdk v4.0.2) like this:

await ario.buyRecord({ name: 'my-name', type: 'permabuy' });
i.e. without a processId. Per the docs/README, omitting processId is supposed to auto-spawn an ANT ("Spawning ant, registering ant, …"). On Solana
that didn't happen — the name was registered bound to the null ANT. It looks like lib/esm/solana/io-writeable.js does params.processId ?? '111…1'
instead of spawning one.

What I tried: I separately spawned a valid ANT (spawnSolanaANT) and tried to point the name at it with reassignName. The transaction is rejected
on-chain:

Instruction: ReassignName
AnchorError caused by account: ant_asset
Error Code: InvalidAntAsset (6041) — must be a valid Metaplex Core asset.
I understand this is because the current ANT on the record is the null placeholder, so there's nothing valid to authorize the reassignment
against. setBaseNameRecord also has no ANT to write to.

My question: How can I recover this name? Is there an admin/migration path on your side to bind it to a valid ANT, or an instruction I can run as
the owner? I already have a spawned ANT ready to use, or a fresh one is fine. I'd prefer not to release it, since it's a permabuy and I'd lose it
to the returned-name auction. Happy to prove ownership by signing with the wallet, and I can share the name and transaction details privately.

Thanks very much!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions