Skip to content

Commit c11b686

Browse files
committed
fix: tox
1 parent 27c2fd7 commit c11b686

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

tests/shanghai/eip3860_initcode/test_initcode.py

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -416,13 +416,15 @@ def create_code(
416416
"""
417417
Salt value used for CREATE2 contract creation.
418418
"""
419-
kwargs = {
420-
"size": Op.CALLDATASIZE,
421-
"init_code_size": len(initcode),
422-
}
423-
if opcode == Op.CREATE2:
424-
kwargs["salt"] = create2_salt
425-
return opcode(**kwargs)
419+
return (
420+
opcode(
421+
size=Op.CALLDATASIZE,
422+
salt=create2_salt,
423+
init_code_size=len(initcode),
424+
)
425+
if opcode == Op.CREATE2
426+
else opcode(size=Op.CALLDATASIZE, init_code_size=len(initcode))
427+
)
426428

427429
@pytest.fixture
428430
def creator_code(self, fork: Fork, create_code: Bytecode) -> Bytecode:

0 commit comments

Comments
 (0)