File tree Expand file tree Collapse file tree 1 file changed +10
-11
lines changed
Expand file tree Collapse file tree 1 file changed +10
-11
lines changed Original file line number Diff line number Diff line change @@ -201,17 +201,16 @@ def gen_registration_cert(
201201 if pool_data .check_metadata_hash :
202202 metadata_args .append ("--check-metadata-hash" )
203203
204- if reward_account_vkey_file :
205- reward_arg = [
206- "--pool-reward-account-verification-key-file" ,
207- str (reward_account_vkey_file ),
208- ]
209- else :
210- default_owner = next (iter (owner_stake_vkey_files ))
211- reward_arg = [
212- "--pool-reward-account-verification-key-file" ,
213- str (default_owner ),
214- ]
204+ reward_vkey_file = (
205+ reward_account_vkey_file
206+ if reward_account_vkey_file
207+ else next (iter (owner_stake_vkey_files ))
208+ )
209+
210+ reward_arg = [
211+ "--pool-reward-account-verification-key-file" ,
212+ str (reward_vkey_file ),
213+ ]
215214
216215 cmd = [
217216 * self ._base ,
You can’t perform that action at this time.
0 commit comments