const ethers = require('ethers');
async function createBytes (args) {
const name = args[0];
const bytes = ethers.utils.formatBytes32String(name);
console.log('name: ',bytes)
}
createBytes(process.argv.slice(2));
Run Code Online (Sandbox Code Playgroud)
它有什么问题,我无法理解这个错误。我正在尝试通过 powershell 运行 js 文件