Skip to content

Commit

Permalink
use json format for bridgedLocation
Browse files Browse the repository at this point in the history
  • Loading branch information
alistair-singh committed May 12, 2023
1 parent 94c880c commit 3960cc9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions scripts/bridges_rococo_wococo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,7 @@ case "$1" in
1000 \
"ws://127.0.0.1:9910" \
1013 \
"Wococo" 1000
'{ "Wococo": "Null" }' 1000
;;
allow-transfer-on-westmint-local)
ensure_polkadot_js_api
Expand Down Expand Up @@ -614,7 +614,7 @@ case "$1" in
"//Alice" \
1000 \
"ws://127.0.0.1:9910" \
"Wococo"
'{ "Wococo": "Null" }'
;;
transfer-asset-from-statemine-local)
ensure_polkadot_js_api
Expand Down
2 changes: 1 addition & 1 deletion scripts/generate_hex_encoded_call/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ function addExporterConfig(endpoint, outputFile, bridgedNetwork, bridgeConfig) {
console.log(`Generating addExporterConfig from RPC endpoint: ${endpoint} to outputFile: ${outputFile} based on bridgedNetwork: ${bridgedNetwork}, bridgeConfig: ${bridgeConfig}`);
connect(endpoint)
.then((api) => {
const call = api.tx.bridgeTransfer.addExporterConfig(bridgedNetwork, JSON.parse(bridgeConfig));
const call = api.tx.bridgeTransfer.addExporterConfig(JSON.parse(bridgedNetwork), JSON.parse(bridgeConfig));
writeHexEncodedBytesToOutput(call.method, outputFile);
exit(0);
})
Expand Down

0 comments on commit 3960cc9

Please sign in to comment.