Created
December 31, 2017 12:23
-
-
Save oryband/95cd2c4fe6b5126353a73253ab961536 to your computer and use it in GitHub Desktop.
Kin Mobile SDK on Ethereum - prepare-tests.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
cd truffle | |
# export account address environment variables | |
# see this file for available variables | |
source ./scripts/testrpc-accounts.sh | |
# export token contract address environment variable | |
export TOKEN_CONTRACT_ADDRESS=$(cat ./token-contract-address) | |
# write contract address to plist file used by xcode when testing | |
/usr/libexec/PlistBuddy -c "Set TOKEN_CONTRACT_ADDRESS '${TOKEN_CONTRACT_ADDRESS}'" ../KinSDK/KinSDKTests/testConfig.plist |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment