Quantcast
Channel: Recent Questions - Solana Stack Exchange
Viewing all articles
Browse latest Browse all 7881

Deploying program with sol_remaining_compute_units() gives "invalid account data"

$
0
0

Including something likemsg!("remaining compute: {}", solana_program::compute_units::sol_remaining_compute_units());

will lead to error when deploying

RPC URL: https://api.devnet.solana.com Default Signer Path:/root/.config/solana/id.json Commitment: confirmed========================================================================= Recover the intermediate account's ephemeral keypair file withsolana-keygen recover and the following 12-word seed phrase:========================================================================= dial rain team erupt super bread apart guitar obvious dutch nothingcheap========================================================================= To resume a deploy, pass the recovered keypair as the [BUFFER_SIGNER]to solana program deploy or solana program write-buffer'. Or to recover the account's lamports, pass it as the [BUFFER_ACCOUNT_ADDRESS] argument to solana program close`.========================================================================= Error: Deploying program failed: RPC response error -32002:Transaction simulation failed: Error processing Instruction 0: invalidaccount data for instruction [3 log messages]


Viewing all articles
Browse latest Browse all 7881

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>