/eth-selector-clashing

Find a function declaration with a clashing selector!

Primary LanguageTypeScript

Ethereum Selector Clashing Tool

Find a function declaration with a clashing selector!

Purpose

Rust Usage

Install the project:

cd rust/eth_function_selector

Custom args and prefix:

cargo run -- --func_name transfer --params "(address,uint256)"

Typescript Usage

Install the project:

nvm use
yarn

Basic search:

yarn start --targetFunc "transfer(address,uint256)"

Custom args and prefix:

yarn start --targetFunc "transfer(address,uint256)" --args "uint,bool" --prefix "myFunc_"

Short version:

yarn start -t "transfer(address,uint256)" -a "uint,bool" -p "myFunc_"

Only first N bytes (for a quick search):

yarn start -t "transfer(address,uint256)" --firstNBytes 1