Enable optimizer and set to 5m runs (#28)

The `deposit` function can be used up to 2^32-1 times anyway.
This commit is contained in:
Alex Beregszaszi 2020-05-15 13:13:31 +01:00 committed by GitHub
parent 62e3281411
commit 69d0e8069d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@ clean:
compile: clean compile: clean
@# Note: using /bin/echo for macOS @# Note: using /bin/echo for macOS
@git submodule update --recursive --init @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 @/bin/echo -n '{"abi": ' > deposit_contract.json
@cat DepositContract.abi >> deposit_contract.json @cat DepositContract.abi >> deposit_contract.json
@/bin/echo -n ', "bytecode": "0x' >> deposit_contract.json @/bin/echo -n ', "bytecode": "0x' >> deposit_contract.json