@@ -82,9 +82,7 @@ def test_push0_contracts(
8282 contract_code : Bytecode ,
8383 expected_storage : Account ,
8484):
85- """
86- Tests PUSH0 within various deployed contracts.
87- """
85+ """Tests PUSH0 within various deployed contracts."""
8886 push0_contract = pre .deploy_contract (contract_code )
8987 tx = Transaction (to = push0_contract , gas_limit = 100_000 , sender = sender )
9088 post [push0_contract ] = expected_storage
@@ -97,14 +95,12 @@ class TestPush0CallContext:
9795 - CALL
9896 - CALLCODE
9997 - DELEGATECALL
100- - STATICCALL
98+ - STATICCALL.
10199 """
102100
103101 @pytest .fixture
104102 def push0_contract_callee (self , pre : Alloc ) -> Address :
105- """
106- Deploys a PUSH0 contract callee to the pre alloc returning its address.
107- """
103+ """Deploys a PUSH0 contract callee to the pre alloc returning its address."""
108104 push0_contract = pre .deploy_contract (Op .MSTORE8 (Op .PUSH0 , 0xFF ) + Op .RETURN (Op .PUSH0 , 1 ))
109105 return push0_contract
110106
@@ -113,7 +109,8 @@ def push0_contract_caller(
113109 self , pre : Alloc , call_opcode : Op , push0_contract_callee : Address
114110 ) -> Address :
115111 """
116- Deploys a contract responsible for calling the callee PUSH0 contract returning its address.
112+ Deploy contract responsible for calling the callee PUSH0 contract
113+ returning its address.
117114 """
118115 call_code = (
119116 Op .SSTORE (0 , call_opcode (gas = 100_000 , address = push0_contract_callee ))
@@ -142,9 +139,7 @@ def test_push0_contract_during_call_contexts(
142139 sender : EOA ,
143140 push0_contract_caller : Address ,
144141 ):
145- """
146- Test PUSH0 during various call contexts.
147- """
142+ """Test PUSH0 during various call contexts."""
148143 tx = Transaction (to = push0_contract_caller , gas_limit = 100_000 , sender = sender )
149144 post [push0_contract_caller ] = Account (storage = {0x00 : 0x01 , 0x01 : 0xFF })
150145 state_test (env = env , pre = pre , post = post , tx = tx )
0 commit comments