I've never seen this type syntax in solidity? Can someone please let me know what is it and why is it written in that way?

Source : https://github.com/ourzora/zora-drops-contracts/blob/8755992e3ba55c9c9d1b061dacbe76278a225f83/src/ERC721Drop.sol#L61

1 Answer 1


It's just a variable. We can write this like:

uint fundsSendGasLimit = 210000;

There is nothing "too" much different. But of course there are some visibility and mutability factors.

Lastly, you can use _ as a separator. Solidity compiler will understand what is for. 1_000_000 equals 1000000 etc

  • So this is usable to write more readable code, right?
    – Sky
    Commented Jun 2, 2022 at 11:26
  • Yes, the compiler doesn't care about the underscores Commented Jun 2, 2022 at 12:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.