fundEscrow
solidity
function fundEscrow(uint256 id) externalOnly the client can fund an escrow, and the escrow must be Created.
Before this call, the client should approve the escrow contract to spend at least escrow.amount of escrow.token.
The contract then calls transferFrom and changes:
text
Created → FundedEvent
solidity
EscrowFunded(id, amount)Reverts
NotClient()InvalidStatus(current, Created)TransferFailed()when the token returnsfalse
A token can also revert internally; that revert bubbles up.