---
# System prepended metadata

title: Unlock the vault

---

# Unlock the vault
## Contract 
``` solidity
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

contract Vault {
  bool public locked;
  bytes32 private password;

  constructor(bytes32 _password) {
    locked = true;
    password = _password;
  }

  function unlock(bytes32 _password) public {
    if (password == _password) {
      locked = false;
    }
  }
}
```

## Instances
- 0x69B646c816a8C4D6e86a2DEcd3BA7EC72114b513