Skip to content

Commit

Permalink
fix: modify
Browse files Browse the repository at this point in the history
  • Loading branch information
tiankonglan committed Dec 28, 2023
1 parent edc19d5 commit 4f485c1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
1 change: 1 addition & 0 deletions Scarb.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,4 @@ initializer_class_hash = "0xbeef"
rpc_url = "http://localhost:5050/"
account_address = "0x517ececd29116499f4a1b64b094da79ba08dfd54a3edaa316134c41f8160973"
private_key = "0x1800000000300000180000000000030000000000003006001800006600"
world_address="0x1374ef8311b490e1a3ae8e63f4cb1c602e6620d4a7bd87c66c44152b27770b4"
4 changes: 2 additions & 2 deletions scripts/default_auth.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
set -euo pipefail
pushd $(dirname "$0")/..

# export RPC_URL="http://localhost:5050";
export RPC_URL="https://starknet-goerli.infura.io/v3/5ca372516740427e97512d4dfefd9c47";
export RPC_URL="http://localhost:5050";
# export RPC_URL="https://starknet-goerli.infura.io/v3/5ca372516740427e97512d4dfefd9c47";
export WORLD_ADDRESS=$(cat ./target/dev/manifest.json | jq -r '.world.address')

export GAME_ADDRESS=$(cat ./target/dev/manifest.json | jq -r '.contracts[] | select(.name == "mississippi_mini::game::game" ).address')
Expand Down
9 changes: 2 additions & 7 deletions scripts/gen_init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,10 @@ echo " "
echo config : $CONFIG_ADDRESS
echo "---------------------------------------------------------------------------"

# enable system -> component authorizations
game_component=("Role" "Skill" "Global" "Player" "BattleInfo" "BattleResult")
config_component=("Role" "Skill" "Global")

sozo execute mississippi_mini::config::config init_role --rpc-url $RPC_URL

sozo execute mississippi_mini::config::config init_skill --rpc-url $RPC_URL





echo "Default authorizations have been successfully set."
echo "Default Setting have been successfully set."

0 comments on commit 4f485c1

Please sign in to comment.