Fix Uniswap deploy script env vars
set -ex
# Connect to the local node
-ETH_RPC_URL=http://127.0.0.1:8545
+export ETH_RPC_URL=http://127.0.0.1:8545
+
+# Disable below if not on Truffle
+export ETH_GAS=4712388
# Use the unlocked RPC accounts
-ETH_RPC_ACCOUNTS=yes
+export ETH_RPC_ACCOUNTS=yes
# Get the 1st account and use it
-ETH_FROM=$(seth accounts | head -n1 | awk '{ print $1 }')
+export ETH_FROM=$(seth accounts | head -n1 | awk '{ print $1 }')
# 1/ Deploy Exchange
EXCHANGE_ADDR=$(seth send --create $(cat ./contracts-vyper/bytecode/exchange.txt) --status 2>/dev/null)
@@ -20,5 +23,5 @@ FACTORY_ADDR=$(seth send --create $(cat ./contracts-vyper/bytecode/factory.txt)
seth send $FACTORY_ADDR "initializeFactory(address)" $EXCHANGE_ADDR
-echo "$EXCHANGE_ADDR" > deployments/Exchange
-echo "$FACTORY_ADDR" > deployments/Factory
\ No newline at end of file
+echo -n "$EXCHANGE_ADDR" > deployments/Exchange
+echo -n "$FACTORY_ADDR" > deployments/Factory
\ No newline at end of file
