File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -95,6 +95,7 @@ export SVM_CHAIN_ID=$(cast to-dec $(cast shr $(cast shl $(cast keccak solana-dev
9595export HUB_POOL=0x14224e63716afAcE30C9a417E0542281869f7d9e # This is for sepolia, update for mainnet
9696export DEPOSIT_QUOTE_TIME_BUFFER=3600
9797export FILL_DEADLINE_BUFFER=21600
98+ export MAX_LEN=$(( 2 * $(stat - c % s target/ deploy/ $PROGRAM .so) )) # Reserve twice the size of the program for future upgrades
9899```
99100
100101#### Initial deployment
@@ -103,11 +104,14 @@ Deploy the program and set the upgrade authority to the multisig:
103104
104105``` shell
105106solana program deploy \
106- --url $RPC_URL target/deploy/ $PROGRAM .so \
107+ --url $RPC_URL \
107108 --keypair $KEYPAIR \
108109 --program-id target/deploy/$PROGRAM -keypair.json \
110+ --max-len $MAX_LEN \
109111 --with-compute-unit-price 50000 \
110- --max-sign-attempts 100
112+ --max-sign-attempts 100 \
113+ --use-rpc \
114+ target/deploy/$PROGRAM .so
111115solana program set-upgrade-authority \
112116 --url $RPC_URL \
113117 --keypair $KEYPAIR \
You can’t perform that action at this time.
0 commit comments