CCC Docs
    Preparing search index...

    Function injectMutantReferences

    • Resolve Mutant cells by ID and add them as code dependencies.

      Use this before minting, transferring or melting a Spore whose content type declares Mutants. Include all IDs returned by getMutantIds; the contract requires the rule dependencies on every lifecycle operation. All lookups finish before tx is modified; lookup failure leaves tx unchanged.

      Parameters

      • params: {
            client: Client;
            tx: Transaction;
            mutantIds: BytesLike[];
            scripts?: SporeScriptInfoLike[];
        }

      Returns Promise<void>