I'm asking myself if the call to a function like transfer in solidity is asynchronous.
In other words, I'm working with the following contract
function count_and_pay() public {
if (lockCon == true)
return;
if (positiveVote > negativeVote) {
candidate.transfer(proprietyContract);
} else {
escrow.transfer(proprietyContract);
}
lockCon = true
}
I'm a little worried here because I'm not able to find any resource where it saying the call escrow.transfer(proprietyContract); make the transaction and will continue in the execution of the call.
In my knowledge the method is asynchronous and it will create only the transaction of the blockchain and will continue the execution. With this scenario, my code should be technically correct (but without meaning).