I was wondering if there was a way, in theory, to call from a sc two functions from a secondary sc in which the result from the first function is a parameter of the second function so something like:
Contract 1
function one(uint a, unit b) public returns(uint){
uint c = a+b
return c
}
function two(uint c, uint d)public returns(uint){
uint d = c+d
return d
}
and
Contract 2
function combine(){
one(a + b)
two(c + d)
}
Clarifications:
I cannot combine them.
The second requires the first to be executed.
I cannot extrapolate the result of the first in any way
It has to be executed within the second contract.