returns a public view (uint256) and the content inside this function does some operations
sum, add, add, sum, div, mul , sub
This are some of the total “operations”
This function is called by another function and it does his job correctly (the caller function receives the value correctly) but if i try to return the data externally (to view it off-chain) the function returns a ‘0’
Does anyone know how to solve this problem without converting the function to a write function and without include (emit/event)?
please use pub
Обсуждают сегодня