Skip to content
This repository has been archived by the owner on Sep 9, 2024. It is now read-only.

Update README.md #75

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/get-started/huff-by-example/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ Functions can accept arguments to be "called" inside the macro or passed as a re

Several builtin functions are provided by the Huff compiler:
#### `__FUNC_SIG(<func_def|string>)`
At compile time, the invocation of `__FUNC_SIG` is substituted with `PUSH4 function_selector`, where `function_selector` is the 4 byte function selector of the passed function definition or string. If a string is passed, it must represent a valid function signature i.e. `"test(address, uint256)"`
At compile time, the invocation of `__FUNC_SIG` is substituted with `PUSH4 function_selector`, where `function_selector` is the 4 byte function selector of the passed function definition or string. If a string is passed, it must represent a valid function signature i.e. `"test(address,uint256)"`

#### `__EVENT_HASH(<event_def|string>)`
At compile time, the invocation of `__EVENT_HASH` is substituted with `PUSH32 event_hash`, where `event_hash` is the selector hash of the passed event definition or string. If a string is passed, it must represent a valid event signature i.e. `"TestEvent(uint256, address indexed)"`
Expand Down