I have function like this:
() save_data_on_update(slice destination_address) impure inline {
builder q = begin_cell();
builder qSliceDestinationAddress = q.store_slice(destination_address);
builder qRefs = qSliceDestinationAddress.store_ref(
begin_cell().store_uint(0, 1).end_cell()
)
.store_ref(
begin_cell().store_uint(0, 1).end_cell()
)
.store_ref(
begin_cell().store_uint(0, 1).end_cell()
)
.store_ref(
begin_cell().store_uint(0, 1).end_cell()
);
cell endedQ = qRefs.end_cell();
set_data(endedQ);
}
Сan I write a function like this?
() save_data_on_update(slice destination_address) impure inline {
builder q = begin_cell();
builder qSliceDestinationAddress = q.store_slice(destination_address);
builder qRefs = qSliceDestinationAddress;
int x = 0;
while (x < 5) {
x += 1;
qRefs.store_ref(begin_cell().store_uint(0, 1).end_cell());
}
cell endedQ = qRefs.end_cell();
set_data(endedQ);
}