Skip to content

Commit

Permalink
feat: Add optimize to compilation, new lines in test.py, Greeter.sol
Browse files Browse the repository at this point in the history
Signed-off-by: mateuszm-arianelabs <mateusz.marcinkowski@arianelabs.com>
  • Loading branch information
mateuszm-arianelabs committed Aug 7, 2024
1 parent cefca9b commit bad6853
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tools/web3py-example/contract/Greeter.sol
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ contract Greeter {
function greet() view public returns (string memory) {
return greeting;
}
}
}
4 changes: 2 additions & 2 deletions tools/web3py-example/scripts/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def deploy_contract(w3, acc):
- tuple: (Deployed contract instance, Contract address)
"""
# compile our Greeter contract
compiled_sol = compile_files(['contract/Greeter.sol'], output_values=['abi', 'bin'])
compiled_sol = compile_files(['contract/Greeter.sol'], output_values=['abi', 'bin'], optimize=True)

# retrieve the contract interface
contract_id, contract_interface = compiled_sol.popitem()
Expand Down Expand Up @@ -168,4 +168,4 @@ def test_contract_call(self):


if __name__ == "__main__":
unittest.main()
unittest.main()

0 comments on commit bad6853

Please sign in to comment.