You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

执行createInitializeInstruction时遇TypeError错误求助

关于执行createInitializeInstruction时的TypeError问题求助

执行createInitializeInstruction函数时触发如下错误:

Error creating token for Token2022Form: TypeError: Cannot read properties of undefined (reading 'call')
at Hash.CipherBase (index.js:7:1)
at new Hash (browser.js:9:1)
at createHash (browser.js:29:1)
at splDiscriminate (splDiscriminate.ts:4:1)
at createInitializeInstruction (instruction.ts:51:1)
at createInitializeInstructionReact (createInitializeInstructionReact.js:21:1)
at Object.create (main.b9dcefd2038733fdf419.hot-update.js:218:495)
at async handleCreateToken2022 (index.jsx:140:1)

已确认以下参数均为有效值:

  • name、symbol、umi为字符串值
  • mint、metadata、mintAuthority、updateAuthority均为合法有效对象/地址

可提供的相关信息包括:

  • 业务代码
  • @solana/spl-token-metadata库中createInitializeInstruction的源码
  • webpack配置文件内容
  • package.json依赖信息

已查阅大量资料仍未解决问题,恳请提供解决方案。

内容的提问来源于stack exchange,提问作者Rose

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.26 01:18:10