Deploy: Make contract upd script support pyth (#2349)
* Deploy: Make contract upd script support pyth Change-Id: I9c40498ef9849979f89e8d48d60333932f8a696f * Deploy: Tweak the wording Change-Id: Iddaca17b74ab2c9aa3a1386280457e02433a6593
This commit is contained in:
parent
7e982cb032
commit
9aeb704e58
|
@ -104,6 +104,12 @@ case "$chain_name" in
|
|||
solana)
|
||||
chain=1
|
||||
explorer="https://explorer.solana.com/address/"
|
||||
extra=""
|
||||
;;
|
||||
pythnet)
|
||||
chain=26
|
||||
explorer="https://explorer.solana.com/address/"
|
||||
extra="Be sure to choose \"Custom RPC\" as the cluster in the explorer and set it to https://pythnet.rpcpool.com"
|
||||
;;
|
||||
ethereum)
|
||||
chain=2
|
||||
|
@ -398,7 +404,7 @@ if [ "$evm" = true ]; then
|
|||
\`\`\`
|
||||
|
||||
EOF
|
||||
elif [ "$chain_name" = "solana" ]; then
|
||||
elif [ "$chain_name" = "solana" ] || [ "$chain_name" = "pythnet" ]; then
|
||||
cat <<-EOF >> "$instructions_file"
|
||||
## Build
|
||||
\`\`\`shell
|
||||
|
@ -411,6 +417,8 @@ elif [ "$chain_name" = "solana" ]; then
|
|||
## Verify
|
||||
Contract at [$explorer$address]($explorer$address)
|
||||
|
||||
$extra
|
||||
|
||||
Next, use the \`verify\` script to verify that the deployed bytecodes we are upgrading to match the build artifacts:
|
||||
|
||||
\`\`\`shell
|
||||
|
|
Loading…
Reference in New Issue