How can I go about creating a function that can do this?
Example:
Person 1 created the transaction and sets an amount.
Person 2 approves the transaction and the amount gets sent to the contract till approved by Person 1.
Person 1 approves and the amount gets sent to Person 1 (or another address) from the contract (or Person 2).
I tried multiple escrow tutorials but couldn't get them to work the way I want.