|
@@ -91,7 +91,7 @@ const LangErrorCode = {
|
|
|
AccountDidNotSerialize: 3004,
|
|
|
AccountNotEnoughKeys: 3005,
|
|
|
AccountNotMutable: 3006,
|
|
|
- AccountNotProgramOwned: 3007,
|
|
|
+ AccountOwnedByWrongProgram: 3007,
|
|
|
InvalidProgramId: 3008,
|
|
|
InvalidProgramExecutable: 3009,
|
|
|
AccountNotSigner: 3010,
|
|
@@ -189,8 +189,8 @@ const LangErrorMessage = new Map([
|
|
|
],
|
|
|
[LangErrorCode.AccountNotMutable, "The given account is not mutable"],
|
|
|
[
|
|
|
- LangErrorCode.AccountNotProgramOwned,
|
|
|
- "The given account is not owned by the executing program",
|
|
|
+ LangErrorCode.AccountOwnedByWrongProgram,
|
|
|
+ "The given account is owned by a different program than expected",
|
|
|
],
|
|
|
[LangErrorCode.InvalidProgramId, "Program ID was not as expected"],
|
|
|
[LangErrorCode.InvalidProgramExecutable, "Program account is not executable"],
|