Allow requests from any origin
Some checks failed
Protobuf / lint (pull_request) Successful in 21s
Build / build (pull_request) Successful in 2m11s
E2E Tests / test-e2e (pull_request) Successful in 3m31s
Integration Tests / test-integration (pull_request) Successful in 1m50s
Lint / Run golangci-lint (pull_request) Successful in 5m0s
SDK Tests / sdk_tests_nameservice_expiry (pull_request) Successful in 6m59s
Unit Tests / test-unit (pull_request) Successful in 1m44s
SDK Tests / sdk_tests (pull_request) Failing after 8m32s
SDK Tests / sdk_tests_auctions (pull_request) Successful in 12m46s

This commit is contained in:
Adw8 2024-04-03 18:29:16 +05:30
parent 816e1623ac
commit 17a0643cc1

View File

@ -66,6 +66,9 @@ if [ "$1" == "clean" ] || [ ! -d "$HOME/.laconicd/data/blockstore.db" ]; then
sed -i 's/create_empty_blocks = true/create_empty_blocks = false/g' $HOME/.laconicd/config/config.toml
fi
# Run this to allow requests from any origin
sed -i 's/cors_allowed_origins.*$/cors_allowed_origins = ["*"]/' $HOME/.laconicd/config/config.toml
# Allocate genesis accounts (cosmos formatted addresses)
laconicd genesis add-genesis-account $KEY 100000000000000000000000000photon --keyring-backend $KEYRING