First, this is not a duplicate question of these ones:
- How can you call a payable function in another contract with arguments and send funds?
- Calling and funding a payable function from existing contract balance
I would like to know if it's possible to call a payable function in contract B from a non-payable function in contract A and paying from contract A's balance and not from the caller.
This way, the call would be "free" for the caller and the contract will assume the costs of paying the second payable function.
I've tried using the {value: amount}
in the call request, but this seems to get the funds from the caller, not from the contract balance.
Thank you!!