Specify loader when bootstrapping bpf programs (#11571) (#11822)

(cherry picked from commit 0a94e7e7fa)

Co-authored-by: Jack May <jack@solana.com>
This commit is contained in:
mergify[bot]
2020-08-25 07:56:11 -07:00
committed by GitHub
parent c8e1fbd568
commit d05b39c4f6
2 changed files with 15 additions and 9 deletions

View File

@@ -10,10 +10,11 @@ fetch_program() {
declare name=$1
declare version=$2
declare address=$3
declare loader=$4
declare so=spl_$name-$version.so
genesis_args+=(--bpf-program "$address" "$so")
genesis_args+=(--bpf-program "$address" "$loader" "$so")
if [[ -r $so ]]; then
return
@@ -36,8 +37,8 @@ fetch_program() {
}
fetch_program token 1.0.0 TokenSVp5gheXUvJ6jGWGeCsgPKgnE3YgdGKRVCMY9o
fetch_program memo 1.0.0 Memo1UhkJRfHyvLMcVucJwxXeuD728EqVDDwQDxFMNo
fetch_program token 1.0.0 TokenSVp5gheXUvJ6jGWGeCsgPKgnE3YgdGKRVCMY9o BPFLoader1111111111111111111111111111111111
fetch_program memo 1.0.0 Memo1UhkJRfHyvLMcVucJwxXeuD728EqVDDwQDxFMNo BPFLoader1111111111111111111111111111111111
echo "${genesis_args[@]}" > spl-genesis-args.sh