Created
October 13, 2022 13:50
-
-
Save jtriley-eth/eaad010d3f5effe5db0dff99ff376c92 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// SPDX-License-Identifier: MIT | |
pragma solidity 0.8.17; | |
// Used in the `name()` function | |
bytes32 constant nameLength = 0x0000000000000000000000000000000000000000000000000000000000000009; | |
bytes32 constant nameData = 0x59756c20546f6b656e0000000000000000000000000000000000000000000000; | |
// Used in the `symbol()` function | |
bytes32 constant symbolLength = 0x0000000000000000000000000000000000000000000000000000000000000003; | |
bytes32 constant symbolData = 0x59554c0000000000000000000000000000000000000000000000000000000000; | |
// `bytes4(keccak256("InsufficientBalance()"))` | |
bytes32 constant insufficientBalanceSelector = 0xf4d678b800000000000000000000000000000000000000000000000000000000; | |
// `bytes4(keccak256("InsufficientAllowance(address,address)"))` | |
bytes32 constant insufficientAllowanceSelector = 0xf180d8f900000000000000000000000000000000000000000000000000000000; | |
error InsufficientBalance(); | |
error InsufficientAllowance(address owner, address spender); | |
/// @title Yul ERC20 | |
/// @author <your name here> | |
/// @notice For demo purposes ONLY. | |
contract YulERC20 { | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment