@@ -39,7 +39,7 @@ pub fn resize_memory(
39
39
40
40
/// EOF Create instruction
41
41
pub fn eofcreate < H : Host + ?Sized > ( interpreter : & mut Interpreter , _host : & mut H ) {
42
- error_on_disabled_eof ! ( interpreter) ;
42
+ require_eof ! ( interpreter) ;
43
43
gas ! ( interpreter, EOF_CREATE_GAS ) ;
44
44
let initcontainer_index = unsafe { * interpreter. instruction_pointer } ;
45
45
pop ! ( interpreter, value, salt, data_offset, data_size) ;
@@ -92,7 +92,7 @@ pub fn eofcreate<H: Host + ?Sized>(interpreter: &mut Interpreter, _host: &mut H)
92
92
}
93
93
94
94
pub fn txcreate < H : Host + ?Sized > ( interpreter : & mut Interpreter , host : & mut H ) {
95
- error_on_disabled_eof ! ( interpreter) ;
95
+ require_eof ! ( interpreter) ;
96
96
gas ! ( interpreter, EOF_CREATE_GAS ) ;
97
97
pop ! (
98
98
interpreter,
@@ -171,7 +171,7 @@ pub fn txcreate<H: Host + ?Sized>(interpreter: &mut Interpreter, host: &mut H) {
171
171
}
172
172
173
173
pub fn return_contract < H : Host + ?Sized > ( interpreter : & mut Interpreter , _host : & mut H ) {
174
- error_on_not_init_eof ! ( interpreter) ;
174
+ require_init_eof ! ( interpreter) ;
175
175
let deploy_container_index = unsafe { read_u16 ( interpreter. instruction_pointer ) } ;
176
176
pop ! ( interpreter, aux_data_offset, aux_data_size) ;
177
177
let aux_data_size = as_usize_or_fail ! ( interpreter, aux_data_size) ;
@@ -280,7 +280,7 @@ pub fn extcall_gas_calc<H: Host + ?Sized>(
280
280
}
281
281
282
282
pub fn extcall < H : Host + ?Sized , SPEC : Spec > ( interpreter : & mut Interpreter , host : & mut H ) {
283
- error_on_disabled_eof ! ( interpreter) ;
283
+ require_eof ! ( interpreter) ;
284
284
pop_address ! ( interpreter, target_address) ;
285
285
286
286
// input call
@@ -315,7 +315,7 @@ pub fn extcall<H: Host + ?Sized, SPEC: Spec>(interpreter: &mut Interpreter, host
315
315
}
316
316
317
317
pub fn extdcall < H : Host + ?Sized , SPEC : Spec > ( interpreter : & mut Interpreter , host : & mut H ) {
318
- error_on_disabled_eof ! ( interpreter) ;
318
+ require_eof ! ( interpreter) ;
319
319
pop_address ! ( interpreter, target_address) ;
320
320
321
321
// input call
@@ -348,7 +348,7 @@ pub fn extdcall<H: Host + ?Sized, SPEC: Spec>(interpreter: &mut Interpreter, hos
348
348
}
349
349
350
350
pub fn extscall < H : Host + ?Sized > ( interpreter : & mut Interpreter , host : & mut H ) {
351
- error_on_disabled_eof ! ( interpreter) ;
351
+ require_eof ! ( interpreter) ;
352
352
pop_address ! ( interpreter, target_address) ;
353
353
354
354
// input call
@@ -382,7 +382,7 @@ pub fn create<const IS_CREATE2: bool, H: Host + ?Sized, SPEC: Spec>(
382
382
interpreter : & mut Interpreter ,
383
383
host : & mut H ,
384
384
) {
385
- error_on_static_call ! ( interpreter) ;
385
+ require_non_staticcall ! ( interpreter) ;
386
386
387
387
// EIP-1014: Skinny CREATE2
388
388
if IS_CREATE2 {
0 commit comments