diff --git a/nucypher/blockchain/eth/constants.py b/nucypher/blockchain/eth/constants.py index 41754dfd2..d261c827d 100644 --- a/nucypher/blockchain/eth/constants.py +++ b/nucypher/blockchain/eth/constants.py @@ -17,7 +17,7 @@ along with nucypher. If not, see . """Nucypher Token and Miner constants.""" ONE_YEAR_IN_SECONDS = 31540000 -NUCYPHER_GAS_LIMIT = 6000000 # TODO: move elsewhere? +NUCYPHER_GAS_LIMIT = 6500000 # TODO: move elsewhere? # # Dispatcher diff --git a/tests/blockchain/eth/contracts/lib/test_signature_verifier.py b/tests/blockchain/eth/contracts/lib/test_signature_verifier.py index 0dd16af74..ccf2a4d72 100644 --- a/tests/blockchain/eth/contracts/lib/test_signature_verifier.py +++ b/tests/blockchain/eth/contracts/lib/test_signature_verifier.py @@ -53,7 +53,7 @@ def test_recover(testerchain, signature_verifier): # Generate Umbral key and extract "address" from the public key umbral_privkey = UmbralPrivateKey.gen_key() umbral_pubkey_bytes = umbral_privkey.get_pubkey().to_bytes(is_compressed=False) - signer_address = bytearray(testerchain.interface.w3.soliditySha3(['bytes32'], [umbral_pubkey_bytes[1:]])) + signer_address = bytearray(testerchain.interface.w3.solidityKeccak(['bytes32'], [umbral_pubkey_bytes[1:]])) signer_address = to_normalized_address(signer_address[12:]) # Sign message using SHA-256 hash (because only 32 bytes hash can be used in the `ecrecover` method) @@ -101,7 +101,7 @@ def test_address(testerchain, signature_verifier): # Generate Umbral key and extract "address" from the public key umbral_privkey = UmbralPrivateKey.gen_key() umbral_pubkey_bytes = umbral_privkey.get_pubkey().to_bytes(is_compressed=False) - signer_address = bytearray(testerchain.interface.w3.soliditySha3(['bytes32'], [umbral_pubkey_bytes[1:]])) + signer_address = bytearray(testerchain.interface.w3.solidityKeccak(['bytes32'], [umbral_pubkey_bytes[1:]])) signer_address = to_normalized_address(signer_address[12:]) # Check extracting address in library diff --git a/tests/blockchain/eth/contracts/main/mining_adjudicator/conftest.py b/tests/blockchain/eth/contracts/main/mining_adjudicator/conftest.py index bf1cc59a9..77065a2e6 100644 --- a/tests/blockchain/eth/contracts/main/mining_adjudicator/conftest.py +++ b/tests/blockchain/eth/contracts/main/mining_adjudicator/conftest.py @@ -36,7 +36,7 @@ def adjudicator_contract(testerchain, escrow, request): 'MiningAdjudicator', escrow.address, ALGORITHM_SHA256, 100, 10, 5, 2) if request.param: - secret_hash = testerchain.interface.w3.sha3(secret) + secret_hash = testerchain.interface.w3.keccak(secret) dispatcher, _ = testerchain.interface.deploy_contract('Dispatcher', contract.address, secret_hash) # Deploy second version of the government contract diff --git a/tests/blockchain/eth/contracts/main/mining_adjudicator/test_mining_adjudicator.py b/tests/blockchain/eth/contracts/main/mining_adjudicator/test_mining_adjudicator.py index 279c196f6..17bab678b 100644 --- a/tests/blockchain/eth/contracts/main/mining_adjudicator/test_mining_adjudicator.py +++ b/tests/blockchain/eth/contracts/main/mining_adjudicator/test_mining_adjudicator.py @@ -307,8 +307,8 @@ def test_evaluate_cfrag(testerchain, escrow, adjudicator_contract): def test_upgrading(testerchain): creator = testerchain.interface.w3.eth.accounts[0] - secret_hash = testerchain.interface.w3.sha3(secret) - secret2_hash = testerchain.interface.w3.sha3(secret2) + secret_hash = testerchain.interface.w3.keccak(secret) + secret2_hash = testerchain.interface.w3.keccak(secret2) # Deploy contracts escrow1, _ = testerchain.interface.deploy_contract('MinersEscrowForMiningAdjudicatorMock')