0

当我尝试使用锚点部署 IDL 时,我收到一条神秘的“自定义错误 0x1004”消息。这是什么意思:?

$ anchor idl init --provider.cluster testnet --filepath ./target/idl/myprogram.json sa3BafcCxwD6G3tUbvTcvnCD28sCXhpasauLtpw9HdA
Error: Error processing Instruction 0: custom program error: 0x1004
4

1 回答 1

1

0x1004 是 4100 的十六进制,或DeclaredProgramIdMismatch错误。

因此,在您的程序中的某处,您声明的程序 id 与您部署的程序 id 不同:

declare_id!("some_other_program_id"); // this is not your program id!
于 2022-02-25T23:15:44.127 回答