Skip to content

Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.

623 B
Raw Blame
const { ethers } = require('hardhat');
const { expect } = require('chai');

const name = 'Non Fungible Token';
const symbol = 'NFT';
const tokenId = 1n;

describe('ERC721Holder', function () {
  it('receives an ERC721 token', async function () {
    const [owner] = await ethers.getSigners();

    const token = await ethers.deployContract('$ERC721', [name, symbol]);
    await token.$_mint(owner, tokenId);

    const receiver = await ethers.deployContract('$ERC721Holder');
    await token.connect(owner).safeTransferFrom(owner, receiver, tokenId);

    expect(await token.ownerOf(tokenId)).to.equal(receiver);
  });
});