diff --git a/predeployed/test/tools/test_predeployed.py b/predeployed/test/tools/test_predeployed.py index aea703e..0d9e5e0 100644 --- a/predeployed/test/tools/test_predeployed.py +++ b/predeployed/test/tools/test_predeployed.py @@ -21,20 +21,6 @@ def __exit__(self, exc_type, exc_val, exc_tb): class TestPredeployed: GENESIS_FILENAME = 'genesis.json' - def generate_extradata(self): - self.password = ''.join(random.choices(string.ascii_lowercase + string.digits, k=12)) - self.password_filename = os.path.join(self.datadir, 'password.txt') - with open(self.password_filename, 'w') as password_f: - password_f.writelines([self.password]) - process = subprocess.run(['geth', 'account', 'new', '--datadir', self.datadir, '--password', self.password_filename]) - assert process.returncode == 0 - - process = subprocess.Popen(['geth', 'account', 'list', '--datadir', self.datadir], stdout=subprocess.PIPE, - universal_newlines=True) - account0 = process.stdout.readline() - self.author_address = account0.split()[2][1:-1] - return '0x' + '00' * 32 + self.author_address + '00' * 65 - def generate_genesis(self, allocations: dict = {}): base_genesis_filename = os.path.join(os.path.dirname(__file__), 'base_genesis.json') with open(base_genesis_filename) as base_genesis_file: