Skip to content

Instantly share code, notes, and snippets.

@oryband
Created December 31, 2017 12:23
Show Gist options
  • Save oryband/95cd2c4fe6b5126353a73253ab961536 to your computer and use it in GitHub Desktop.
Save oryband/95cd2c4fe6b5126353a73253ab961536 to your computer and use it in GitHub Desktop.
Kin Mobile SDK on Ethereum - prepare-tests.sh
#!/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