[英]Solana Anchor deploy error. bump targets should not be provided with init. please use bump without a target
When I run anchor deploy
, I am getting this error.当我运行
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
How can I fix it? bump targets should not be provided with init. please use bump without a target
我该如何解决?
What version of anchor you running?你运行的是什么版本的主播?
0.21.0 added breaking change with bumps 0.21.0 添加了带有颠簸的重大更改
https://github.com/project-serum/anchor/blob/master/CHANGELOG.md https://github.com/project-serum/anchor/blob/master/CHANGELOG.md
lang: Providing bump = targets with init will now error.
lang:提供 bump = targets with init 现在会出错。 On init only, it is required to use bump without a target and access the seed inside function handlers via ctx.bumps.get("<pda-account-name").
仅在初始化时,需要在没有目标的情况下使用 bump,并通过 ctx.bumps.get("<pda-account-name") 访问 function 处理程序中的种子。 For subsequent seeds constraints (without init), it is recommended to store the bump on your account and use it as a bump = target to minimize compute units used
对于后续的种子约束(没有 init),建议将 bump 存储在您的帐户上并将其用作 bump = target 以最小化使用的计算单元
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.