---
marp: true
---

# Escrow: Let's get real world!

- 🧠 you now understand storage, value/data transfer between smart contracts
- 🎉 you can now produce useful solidity contracts!
- 📜 let's build an escrow agreement between 2 parties to transfer some value, arbitrated by a 3rd party

---

![escrow-1](imgs/escrow-1.png)

---

![escrow-2](imgs/escrow-2.png)

---

## Let the world know! 📣

Emit an **event** when something important happens!

```js
contract Escrow {
  event Approved(uint);

  function approve() external {
    // ...

    emit Approved(address(this).balance);
  }
}
```
