# OpenZeppelin create2

**URL:** <https://forum.openzeppelin.com/t/openzeppelin-create2/40530>\
**Category:** Contracts\
**Created:** [May 14, 2024, 3:57am UTC](https://forum.openzeppelin.com/t/openzeppelin-create2/40530 "2024-05-14T03:57:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ZhangPeibin](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.openzeppelin.com/zhangpeibin/32/19502_2.png) [@ZhangPeibin](https://forum.openzeppelin.com/u/ZhangPeibin)\
**Post date:** [May 14, 2024, 3:57am UTC](https://forum.openzeppelin.com/t/openzeppelin-create2/40530/1 "2024-05-14T03:57:24Z")

</div>

hello! guys!  
I'm learning create2 code here : [https://github.com/OpenZeppelin/openzeppelin-contracts/blob/ca2b85d786dfc07acfbf62de1893ff73363d614b/contracts/utils/Create2.sol#L37](https://github.com/OpenZeppelin/openzeppelin-contracts/blob/ca2b85d786dfc07acfbf62de1893ff73363d614b/contracts/utils/Create2.sol#L37)  
and I find a question here

```auto
if (address(this).balance < amount) {
   revert Errors.InsufficientBalance(address(this).balance, amount);
}

```

if amount = 1ether  
and balance is also 1 ether.  
I think this create2 will revert for no gas here.  
should change to this?

```auto
if (address(this).balance <= amount) {
   revert Errors.InsufficientBalance(address(this).balance, amount);
}

```

may be I'm wrong , please let me know the reason!  
Thanks!

---

<div class="post-metadata">

**Author:** ![Zartaj](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.openzeppelin.com/zartaj/32/19230_2.png) [@Zartaj](https://forum.openzeppelin.com/u/Zartaj)\
**Post date:** [May 15, 2024, 6:34am UTC](https://forum.openzeppelin.com/t/openzeppelin-create2/40530/2 "2024-05-15T06:34:00Z")

</div>

No, the way you are thinking is applicable while using `require` statement, but this is an `if revert` statement.

Means, only when the `balance` is less than `amount`, it will revert. And if the `balance` and `amount` are equal OR if `balance` is greater than `amount`, it will execute.

Just think of it as a reverse logic for `require` statement
