Skip to content

Commit bfa90ae

Browse files
committed
style: use formatter
1 parent b4c374b commit bfa90ae

File tree

1 file changed

+25
-7
lines changed

1 file changed

+25
-7
lines changed

src/createx/main.py

Lines changed: 25 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,9 @@ def compute_address(
189189
redeploy_protection=redeploy_protection,
190190
),
191191
keccak( # initcode hash
192-
Contract.constructor.serialize_transaction(*constructor_args).data
192+
Contract.constructor.serialize_transaction(
193+
*constructor_args
194+
).data
193195
),
194196
]
195197

@@ -217,11 +219,17 @@ def deploy(
217219
if salt is not None:
218220
raise RuntimeError("`salt=` is not supported for CREATE")
219221

220-
if init_args or deployment_payable_value or initialization_payable_value:
222+
if (
223+
init_args
224+
or deployment_payable_value
225+
or initialization_payable_value
226+
):
221227
deployment_fn = self.contract.deployCreateAndInit
222228
args = [
223229
# Initcode for contract
224-
Contract.constructor.serialize_transaction(*constructor_args).data,
230+
Contract.constructor.serialize_transaction(
231+
*constructor_args
232+
).data,
225233
# Post-deploy init args for contract
226234
init_args or b"",
227235
# Payable values to use for deployment and initialization
@@ -232,15 +240,23 @@ def deploy(
232240
deployment_fn = self.contract.deployCreate
233241
args = [
234242
# Initcode for contract
235-
Contract.constructor.serialize_transaction(*constructor_args).data,
243+
Contract.constructor.serialize_transaction(
244+
*constructor_args
245+
).data,
236246
]
237247

238248
case CreationType.CREATE2:
239-
if init_args or deployment_payable_value or initialization_payable_value:
249+
if (
250+
init_args
251+
or deployment_payable_value
252+
or initialization_payable_value
253+
):
240254
deployment_fn = self.contract.deployCreate2AndInit
241255
args = [
242256
# Initcode for contract
243-
Contract.constructor.serialize_transaction(*constructor_args).data,
257+
Contract.constructor.serialize_transaction(
258+
*constructor_args
259+
).data,
244260
# Post-deploy init args for contract
245261
init_args or b"",
246262
# Payable values to use for deployment and initialization
@@ -251,7 +267,9 @@ def deploy(
251267
deployment_fn = self.contract.deployCreate2
252268
args = [
253269
# Initcode for contract
254-
Contract.constructor.serialize_transaction(*constructor_args).data,
270+
Contract.constructor.serialize_transaction(
271+
*constructor_args
272+
).data,
255273
]
256274

257275
if refund is not None:

0 commit comments

Comments
 (0)