繁体   English   中英

Solana 锚点部署错误。 初始化不应提供碰撞目标。 请使用没有目标的颠簸

[英]Solana Anchor deploy error. bump targets should not be provided with init. please use bump without a target

当我运行anchor deploy时,出现此错误。 bump targets should not be provided with init. please use bump without a target bump targets should not be provided with init. please use bump without a target我该如何解决?

你运行的是什么版本的主播?

0.21.0 添加了带有颠簸的重大更改

https://github.com/project-serum/anchor/blob/master/CHANGELOG.md

lang:提供 bump = targets with init 现在会出错。 仅在初始化时,需要在没有目标的情况下使用 bump,并通过 ctx.bumps.get("<pda-account-name") 访问 function 处理程序中的种子。 对于后续的种子约束(没有 init),建议将 bump 存储在您的帐户上并将其用作 bump = target 以最小化使用的计算单元

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM