Skip to content

Commit

Permalink
Updated for user defined output directories
Browse files Browse the repository at this point in the history
  • Loading branch information
MitchPierias committed May 5, 2019
1 parent c1d808d commit c054e9d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/scripts/compile_contract.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ outputPath="$2"
contractName="$3"

# Ensure the output directory exists
mkdir -p "project/.lamington/compiled_contracts/$outputPath"
mkdir -p "project/$outputPath"

# compile smart contract to wasm and abi files using EOSIO.CDT (Contract Development Toolkit)
# https://github.com/EOSIO/eosio.cdt
eosio-cpp -abigen "$filename" -o "project/.lamington/compiled_contracts/$outputPath/$contractName.wasm" --contract "$contractName"
eosio-cpp -abigen "$filename" -o "project/$outputPath/$contractName.wasm" --contract "$contractName"

0 comments on commit c054e9d

Please sign in to comment.