简体   繁体   English

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

[英]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.

相关问题 部署 SSDT 表格 Model 目标调用错误 - Deploy SSDT Tabular Model target of invocation error 无法通过 de.net 部署 solana 智能合约 - Not able to deploy solana smart contract over devnet Azure自定义deploy.cmd获取.nuget \\ nuget.targets错误:在WebClient请求期间发生异常 - Azure Custom deploy.cmd getting .nuget\nuget.targets error : An exception occurred during a WebClient request 为什么我无法在 Solana 主网上部署程序? - Why I can't deploy program on Solana Mainnet? 请帮我。 如何处理此错误。 当我在另一台计算机上运行应用程序时,出现以下消息: - Please help me. how to handle this error. when i run my application on another computer i get this message: 我应该使用Eclipse向导来部署Web应用程序吗? - Should I use Eclipse wizard to deploy web application? 如何创建MSBuild目标文件以部署文件? - How to create MSBuild targets file to deploy files? 错误:部署目标需要 Qt 库,但 init qmake 失败。 (CQtDeployer) - Error: The deployment target requir Qt libs, but init qmake is failed. (CQtDeployer) Google App引擎的Deploy异常:无法获取System Java编译器。 请使用JDK,而不是JRE - Google App engine Deploy Exception : Cannot get the System Java Compiler. Please use a JDK, not a JRE 如何在没有.NET v4.0的目标环境上部署.NET v4.0应用程序? - How can I deploy .NET v4.0 application on target environment without .NET v4.0?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM