@@ -59,15 +59,6 @@ pub struct CfgEnv<SPEC = SpecId> {
5959 /// By default, it is set to `false`.
6060 #[ cfg( feature = "optional_eip3607" ) ]
6161 pub disable_eip3607 : bool ,
62- /// Disables all gas refunds
63- ///
64- /// This is useful when using chains that have gas refunds disabled, e.g. Avalanche.
65- ///
66- /// Reasoning behind removing gas refunds can be found in EIP-3298.
67- ///
68- /// By default, it is set to `false`.
69- #[ cfg( feature = "optional_gas_refund" ) ]
70- pub disable_gas_refund : bool ,
7162 /// Disables base fee checks for EIP-1559 transactions
7263 ///
7364 /// This is useful for testing method calls with zero gas price.
@@ -105,8 +96,6 @@ impl<SPEC> CfgEnv<SPEC> {
10596 disable_block_gas_limit : self . disable_block_gas_limit ,
10697 #[ cfg( feature = "optional_eip3607" ) ]
10798 disable_eip3607 : self . disable_eip3607 ,
108- #[ cfg( feature = "optional_gas_refund" ) ]
109- disable_gas_refund : self . disable_gas_refund ,
11099 #[ cfg( feature = "optional_no_base_fee" ) ]
111100 disable_base_fee : self . disable_base_fee ,
112101 }
@@ -168,16 +157,6 @@ impl<SPEC: Into<SpecId> + Copy> Cfg for CfgEnv<SPEC> {
168157 }
169158 }
170159
171- fn is_gas_refund_disabled ( & self ) -> bool {
172- cfg_if:: cfg_if! {
173- if #[ cfg( feature = "optional_gas_refund" ) ] {
174- self . disable_gas_refund
175- } else {
176- false
177- }
178- }
179- }
180-
181160 fn is_block_gas_limit_disabled ( & self ) -> bool {
182161 cfg_if:: cfg_if! {
183162 if #[ cfg( feature = "optional_block_gas_limit" ) ] {
@@ -219,8 +198,6 @@ impl<SPEC: Default> Default for CfgEnv<SPEC> {
219198 disable_block_gas_limit : false ,
220199 #[ cfg( feature = "optional_eip3607" ) ]
221200 disable_eip3607 : false ,
222- #[ cfg( feature = "optional_gas_refund" ) ]
223- disable_gas_refund : false ,
224201 #[ cfg( feature = "optional_no_base_fee" ) ]
225202 disable_base_fee : false ,
226203 }
0 commit comments