From 69d0e8069dbce6ae6f50b88a127a144902b356f0 Mon Sep 17 00:00:00 2001 From: Alex Beregszaszi Date: Fri, 15 May 2020 13:13:31 +0100 Subject: [PATCH] Enable optimizer and set to 5m runs (#28) The `deposit` function can be used up to 2^32-1 times anyway. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index a5a2879d6..739396aba 100644 --- a/Makefile +++ b/Makefile @@ -10,7 +10,7 @@ clean: compile: clean @# Note: using /bin/echo for macOS @git submodule update --recursive --init - @solc --metadata-literal --bin --abi --combined-json=abi,bin,bin-runtime,srcmap,srcmap-runtime,ast,metadata,storage-layout --overwrite -o . deposit_contract.sol tests/deposit_contract.t.sol + @solc --metadata-literal --optimize --optimize-runs 5000000 --bin --abi --combined-json=abi,bin,bin-runtime,srcmap,srcmap-runtime,ast,metadata,storage-layout --overwrite -o . deposit_contract.sol tests/deposit_contract.t.sol @/bin/echo -n '{"abi": ' > deposit_contract.json @cat DepositContract.abi >> deposit_contract.json @/bin/echo -n ', "bytecode": "0x' >> deposit_contract.json