Skip to content

Commit 3384641

Browse files
committed
fix: update readme
Signed-off-by: Reinis Martinsons <reinis@umaproject.org>
1 parent 1781e48 commit 3384641

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ export SVM_CHAIN_ID=$(cast to-dec $(cast shr $(cast shl $(cast keccak solana-dev
9595
export HUB_POOL=0x14224e63716afAcE30C9a417E0542281869f7d9e # This is for sepolia, update for mainnet
9696
export DEPOSIT_QUOTE_TIME_BUFFER=3600
9797
export 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
105106
solana 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
111115
solana program set-upgrade-authority \
112116
--url $RPC_URL \
113117
--keypair $KEYPAIR \

0 commit comments

Comments
 (0)