Trying to upgrade a program I constantly bump into the following error:
$ solana program deploy ./target/deploy/c003_low_level.so
=============================================================================
Recover the intermediate account's ephemeral keypair file with
`solana-keygen recover` and the following 12-word seed phrase:
=============================================================================
=============================================================================
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: Error processing Instruction 0: account data too small for instruction
I have tried to pass the printed-out seed phrase as --program-id ASK
But it just generate a brand new seed phrase:
$ solana program deploy ./target/deploy/c003_low_level.so --program-id ASK
[program_id] seed phrase:
[program_id] If this seed phrase has an associated passphrase, enter it now. Otherwise, press ENTER to continue:
==========================================================================
Recover the intermediate account's ephemeral keypair file with
`solana-keygen recover` and the following 12-word seed phrase:
==========================================================================
==========================================================================
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: Error processing Instruction 0: custom program error: 0x0
I tried to use solana program write-buffer
it returns an address, but I'm puzzled how to use it.
solana program deploy --program-id <PROGRAM_ADDRESS> --buffer <BUFFER_ADDRESS>