SolanaでdeployするとError processing Instruction 1: custom program error: 0x1 エラー

現象

Solanaのプログラムをdevnetにdeployできない。

 % solana program deploy dist/program/helloworld.so

==============================================================================
Recover the intermediate account's ephemeral keypair file with
`solana-keygen recover` and the following 12-word seed phrase:
==============================================================================
memory marriage hole direct weapon deal dog cousin stand subject balance ozone
==============================================================================
To resume a deploy, pass the recovered keypair as the
[BUFFER_SIGNER] to `solana program deploy` or `solana 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 1: custom program error: 0x1

原因

自分のケースはトランザクション手数料が不足していた。

対策

残高を増やす。以下はairdropで増やした例。

% solana balance
0.2607108 SOL


% sol airdrop 1
Requesting airdrop of 1 SOL

Signature: 4okT6NWNHdRA8QeAd1tMaPMMf7JqQPXVkGr6qWiTqZqM5tsy38Hs473d44jbov1Q4FKCVhhdgbUhjHo6XAGLJ4UD

1.2607108 SOL