Skip to content

Commit

Permalink
test: size use uint256
Browse files Browse the repository at this point in the history
  • Loading branch information
obatirou committed Jan 21, 2025
1 parent 1a8ef6e commit 48f35b7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cairo/ethereum/cancun/vm/instructions/environment.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -801,7 +801,6 @@ func extcodehash{
return ok;
}

// @notice Load input data from the current environment's call data
func calldataload{range_check_ptr, evm: Evm}() -> ExceptionalHalt* {
alloc_locals;

Expand Down Expand Up @@ -902,6 +901,7 @@ func calldatasize{range_check_ptr, evm: Evm}() -> ExceptionalHalt* {
// STACK
// No stack input
let stack = evm.value.stack;

// GAS
let err = charge_gas(Uint(GasConstants.GAS_BASE));
if (cast(err, felt) != 0) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ def calldatacopy_strategy(draw):

memory_start_index = draw(memory_lite_start_position)
data_start_index = draw(uint256)
size = draw(st.integers(min_value=0, max_value=1024).map(U256))
size = draw(uint256)

# 80% chance to push valid values onto stack
should_push = draw(integers(0, 99)) < 80
Expand Down

0 comments on commit 48f35b7

Please sign in to comment.