Browse Source

modified storage fetch code

ignazio 3 years ago
parent
commit
3ee27ad7ec
1 changed files with 4 additions and 1 deletions
  1. 4 1
      tests/network-tests/run-migration-tests.sh

+ 4 - 1
tests/network-tests/run-migration-tests.sh

@@ -120,7 +120,10 @@ function fork_off_init() {
     # chain-spec-raw already existing
 
     if ! [[ -f $(pwd)/storage.json ]]; then
-	scp ignazio@testnet-rpc-3-uk.joystream.org:/home/ignazio/storage.json ./storage.json
+	curl http://testnet-rpc-3-uk.joystream.org:9933 -H \
+	     "Content-type: application/json" -d \
+	     '{"jsonrpc":"2.0","id":1,"method":"state_getPairs","params":["0x"]}' \
+	     > storage.json	
     fi
 	cp $(pwd)/storage.json ${DATA_PATH}/storage.json