Response: {
"error": "formula {
$is_allowed_to_pop = $can_pop(trigger.address);
if (trigger.data.pop){
require($is_allowed_to_pop, "You cannot pop data from this stack");
$new_head_ptr = max(0, $head_ptr - 1);
}
else if (trigger.data.clear){
require($is_allowed_to_pop, "You cannot clear this stack");
$new_head_ptr = 0;
}
else if (exists(trigger.data.push)){
require($can_push(trigger.address), "You cannot push data to this stack");
$new_head_ptr = $head_ptr + 1;
}
} failed: booleans cannot be compared with other types"
}