Skip to content

Commit 0aca90c

Browse files
committed
stash
1 parent 83bec1d commit 0aca90c

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

deploy.sh

+6-4
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
# Run with -h for documentation and help
44

55
# testnet deployment and values (default)
6-
NEAR_ENV="testnet"
7-
feed_parser="switchboard-v2.testnet"
8-
feed_address=[251, 166, 196, 242, 159, 139, 89, 47, 230, 78, 243, 185, 185, 188, 150, 219, 165, 68, 131, 5, 216, 42, 120, 26, 26, 142, 133, 0, 111, 235, 63, 18]
6+
NEAR_ENV="testnet";
7+
feed_parser="switchboard-v2.testnet";
8+
feed_address="[251, 166, 196, 242, 159, 139, 89, 47, 230, 78, 243, 185, 185, 188, 150, 219, 165, 68, 131, 5, 216, 42, 120, 26, 26, 142, 133, 0, 111, 235, 63, 18]";
99
contract_name="conversion_proxy";
1010
patch=false;
1111

@@ -63,11 +63,13 @@ if [ "$contract_name" = "fungible_proxy" ]; then
6363
near deploy -f --wasmFile ./target/wasm32-unknown-unknown/release/$contract_name.wasm \
6464
--accountId $ACCOUNT_ID
6565
else
66+
initArgs="{"feed_parser":$feed_parser,"feed_address":[251, 166, 196, 242, 159, 139, 89, 47, 230, 78, 243, 185, 185, 188, 150, 219, 165, 68, 131, 5, 216, 42, 120, 26, 26, 142, 133, 0, 111, 235, 63, 18]}";
67+
echo $initArgs;
6668
initParams="";
6769
if ! $patch ; then
6870
initParams="
6971
--initFunction new \
70-
--initArgs '{"feed_parser": "'$feed_parser'", "feed_address": "'$feed_address'"}'";
72+
--initArgs $initArgs";
7173
fi
7274
set -x
7375
near deploy -f --wasmFile ./target/wasm32-unknown-unknown/release/$contract_name.wasm \

0 commit comments

Comments
 (0)