...licitly here. This is optional
// but useful for running the script in a standalone fashion through `node `.
//
// When running the script with `npx hardhat run ` you'll find the Hardhat
// Runtime Environment's members available in the global scope.
const hre = require("hardhat");
async function m...
... 操作员没有权限调用(除非经过approve)
// 触发 `Sent` and `Transfer`事件
function transferFrom(address holder, address recipient, uint256 amount) external returns (bool) {
require(recipient != address(0), "ERC777: transfer to the zero address");
requir...