Skip to main content

Questions tagged [function-signature]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer

Check if a function selector exists in a contract

Is it possible in Solidity to check if a function selector exists in an external contract without attempting to invoke said function?
Ahmed Ihsan Tawfeeq's user avatar
0 votes
2 answers

What's the function signature for Chainlink's CCIP send?

Chainlink's CCIP send function definition looks like the following: function ccipSend( uint64 destinationChainSelector, Client.EVM2AnyMessage memory message ) external payable whenHealthy ...
Patrick Collins's user avatar
0 votes
1 answer

What does an array of a struct look like inside a function signature?

Let's say I have a struct like this: struct MyType { address token; uint256 amount; } function hello(MyType[]) external { ... What would my function signature (and, therefore, function ...
Patrick Collins's user avatar
3 votes
1 answer

How to calculate the 4byte selector using Cast?

I am using Foundry, and I need to calculate the 4-byte selector of a custom error. How can I do this with the cast CLI?
Paul Razvan Berg's user avatar
11 votes
2 answers

What is a function signature and function selector in solidity (and EVM languages)?

I've heard the term "function signature" as well as "function selector", what are they? What are they for?
Patrick Collins's user avatar
4 votes
4 answers

Should UIs handle 4Byte function selector collisions?

With 4 bytes collisions are possible. But they are not very likely. Currently in the 6,846 entries in the there are no collisions. Still they are possible. Now I wonder if UIs should ...
ligi's user avatar
  • 1,183