Skip to content

Commit

Permalink
respond to comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ZackAttax committed Oct 18, 2024
1 parent 85856a3 commit d510de0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ ACCOUNT_PRIVATE_KEY=0xPBK
ACCOUNT_PUBLIC_KEY=0xPBKK
ACCOUNT_CLASS_HASH=0xCLHSH
ACCOUNT_PROFILE=argent
RPC_URL=https://rpcurl
RPC_URL=https://rpcurl
1 change: 0 additions & 1 deletion contracts/Scarb.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,3 @@ vendor = "nethermind"

[[target.starknet-contract]]
casm = true
sierra = true
9 changes: 2 additions & 7 deletions scripts/sepolia_deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
echo $SCRIPT_DIR
PROJECT_ROOT=$SCRIPT_DIR/..


# Ensure tmp directory exists
mkdir -p $ONCHAIN_DIR/target/tmp

# Check for required commands
command -v starkli >/dev/null 2>&1 || { echo >&2 "starkli not found. Aborting."; exit 1; }
Expand All @@ -19,13 +20,9 @@ source $PROJECT_ROOT/.env
: "${ACCOUNT_ADDRESS:?ACCOUNT_ADDRESS is not set}"
: "${TOKEN_NAME:?TOKEN_NAME is not set}"
: "${TOKEN_SYMBOL:?TOKEN_SYMBOL is not set}"
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
PROJECT_ROOT=$SCRIPT_DIR/..
ONCHAIN_DIR=$PROJECT_ROOT/contracts
KUDOS_SIERRA_FILE=$ONCHAIN_DIR/target/dev/kudos_Kudos.contract_class.json

# Ensure tmp directory exists
mkdir -p /tmp

# Set account file path within the project tmp directory
ACCOUNT_FILE=/tmp/starknet_accounts.json
Expand All @@ -41,7 +38,6 @@ echo "starkli account fetch $ACCOUNT_ADDRESS \
--output $ACCOUNT_FILE \
"


# Build the contract
echo "Building the contract..."
cd $ONCHAIN_DIR && scarb build
Expand All @@ -57,7 +53,6 @@ echo "Contract class hash: $KUDOS_CONTRACT_CLASSHASH"

# Deploying the contract
echo "Deploying the contract..."
# Define constructor parameters

# Deploy the contract
CALLDATA=$(echo -n $TOKEN_NAME $TOKEN_SYMBOL)
Expand Down

0 comments on commit d510de0

Please sign in to comment.