diff --git a/solidbyte/compile/compiler.py b/solidbyte/compile/compiler.py index a8ba947..fc11def 100644 --- a/solidbyte/compile/compiler.py +++ b/solidbyte/compile/compiler.py @@ -146,8 +146,8 @@ def compile(self, filename): p_abi.wait() # Check the output - p_bin_out = p_bin.stdout.read() - p_abi_out = p_abi.stdout.read() + # p_bin_out = p_bin.stdout.read() + # p_abi_out = p_abi.stdout.read() # solc version differences? # if ( # b'Compiler run successful' not in p_bin_out diff --git a/solidbyte/deploy/objects.py b/solidbyte/deploy/objects.py index bfaada7..8aaaf72 100644 --- a/solidbyte/deploy/objects.py +++ b/solidbyte/deploy/objects.py @@ -289,7 +289,7 @@ def abi(self) -> Optional[List[Dict[str, T]]]: return self.deployments[-1].abi @property - def bytecode_hash(self)-> Optional[str]: + def bytecode_hash(self) -> Optional[str]: """ The latest deployed bytecode hash """ if len(self.deployments) < 1: return None diff --git a/tests/test_cli.py b/tests/test_cli.py index 20c39e4..d9b6e44 100644 --- a/tests/test_cli.py +++ b/tests/test_cli.py @@ -312,30 +312,30 @@ def test_cli_stateless_deploy(sb, mock_project): with mock_project() as mock: - TMP_KEY_DIR = mock.paths.project.joinpath('test-keys') + TMP_KEY_DIR = mock.paths.project.joinpath('test-keys') - # test `sb accounts create --default - execute_command_assert_no_error_success([ - *sb, - '-k', - str(TMP_KEY_DIR), - 'accounts', - 'create', - '--default', - '-p', - PASSWORD_1, - ]) + # test `sb accounts create --default + execute_command_assert_no_error_success([ + *sb, + '-k', + str(TMP_KEY_DIR), + 'accounts', + 'create', + '--default', + '-p', + PASSWORD_1, + ]) - # test `sb deploy [network]` - execute_command_assert_no_error_success([ - *sb, - '-k', - str(TMP_KEY_DIR), - 'deploy', - NETWORK_NAME, - '-p', - PASSWORD_1, - ]) + # test `sb deploy [network]` + execute_command_assert_no_error_success([ + *sb, + '-k', + str(TMP_KEY_DIR), + 'deploy', + NETWORK_NAME, + '-p', + PASSWORD_1, + ]) @pytest.mark.parametrize("sb", [ @@ -346,30 +346,30 @@ def test_cli_stateless_test(sb, mock_project): with mock_project() as mock: - TMP_KEY_DIR = mock.paths.project.joinpath('test-keys') + TMP_KEY_DIR = mock.paths.project.joinpath('test-keys') - # test `sb accounts create --default - execute_command_assert_no_error_success([ - *sb, - '-k', - str(TMP_KEY_DIR), - 'accounts', - 'create', - '--default', - '-p', - PASSWORD_1, - ]) + # test `sb accounts create --default + execute_command_assert_no_error_success([ + *sb, + '-k', + str(TMP_KEY_DIR), + 'accounts', + 'create', + '--default', + '-p', + PASSWORD_1, + ]) - # test `sb deploy [network]` - execute_command_assert_no_error_success([ - *sb, - '-k', - str(TMP_KEY_DIR), - 'test', - NETWORK_NAME, - '-p', - PASSWORD_1, - ]) + # test `sb deploy [network]` + execute_command_assert_no_error_success([ + *sb, + '-k', + str(TMP_KEY_DIR), + 'test', + NETWORK_NAME, + '-p', + PASSWORD_1, + ]) @pytest.mark.parametrize("sb", [ @@ -380,40 +380,40 @@ def test_cli_stateless_erc20(sb, temp_dir): with temp_dir() as workdir: - TMP_KEY_DIR = workdir.joinpath('test-keys') + TMP_KEY_DIR = workdir.joinpath('test-keys') - # test `sb accounts create --default - execute_command_assert_no_error_success([ - *sb, - '-k', - str(TMP_KEY_DIR), - 'accounts', - 'create', - '--default', - '-p', - PASSWORD_1, - ]) + # test `sb accounts create --default + execute_command_assert_no_error_success([ + *sb, + '-k', + str(TMP_KEY_DIR), + 'accounts', + 'create', + '--default', + '-p', + PASSWORD_1, + ]) - # test `sb init -t [template]` - execute_command_assert_no_error_success([ - *sb, - '-k', - str(TMP_KEY_DIR), - 'init', - '-t', - 'erc20' - ]) + # test `sb init -t [template]` + execute_command_assert_no_error_success([ + *sb, + '-k', + str(TMP_KEY_DIR), + 'init', + '-t', + 'erc20' + ]) - # test `sb test [network]` - execute_command_assert_no_error_success([ - *sb, - '-k', - str(TMP_KEY_DIR), - 'test', - NETWORK_NAME, - '-p', - PASSWORD_1, - ]) + # test `sb test [network]` + execute_command_assert_no_error_success([ + *sb, + '-k', + str(TMP_KEY_DIR), + 'test', + NETWORK_NAME, + '-p', + PASSWORD_1, + ]) @pytest.mark.parametrize("sb", [