我正在使用木星交换令牌的索拉纳包。在得到交换结果之后。我当时正在与Solana包sendTransaction方法同步执行一个事务。我得到了下面的错误代码。
木星昂首阔步收藏。
{accounts: null, err: {InstructionError: [0, {Custom: 3012}]}, logs: [Program JUP3c2Uh3WA4Ng34tw6kPd2G4C5BB21Xo36Je1s32Ph invoke [1], Program log: Instruction: SetTokenLedger, Program log: AnchorError caused by account: token_account. Error Code: AccountNotInitialized. Error Number: 3012. Error Message: The program expected this account to be already initialized., Program JUP3c2Uh3WA4Ng34tw6kPd2G4C5BB21Xo36Je1s32Ph consumed 5139 of 600000 compute units, Program JUP3c2Uh3WA4Ng34tw6kPd2G4C5BB21Xo36Je1s32Ph failed: custom program error: 0xbc4], unitsConsumed: 0}
发布于 2022-11-17 12:09:14
木星最多可以创建3个交易(setupTransaction、swapTransaction、cleanupTransaction)。确保按照这个顺序执行所有这些(如果它们不是null)。
https://stackoverflow.com/questions/73881920
复制相似问题