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 with
solana-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]tosolana program deploy
orsolana 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]