```
// SPDX-License-Identifier: MIT
pragma solidity 0.8.19;
import {ERC20} from "./ERC20.sol";
import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol";
import {IUniswapV2Router02} from "./IUniswapV2Router02.sol";
import {IUniswapV2Factory} from "./IUniswapV2Factory.sol";
contra...
...模拟用户,让我们看看是怎么做到的吧!
假设我们有一个ERC721合同,我们希望确保只有代币的所有者才能转移或销毁该代币。我们的测试可能如下:
```solidity
// only the owner can transfer
function testTransferToken() public {
// mint the tok...