-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Open
Labels
A: DocsArea: DocumentationArea: Documentation
Description
What is the type of issue?
No response
What is the issue?
getCode returns contract's code, but the documentation doesn't say what it returns for a contract that doesn't have code
- the underlying RPC (eth_getCode) return "0x"
- viem's
getCodeitself checks for that value and returnsundefinedbut that behaviour is not documented
Where did you find it?
while using getCode
Metadata
Metadata
Assignees
Labels
A: DocsArea: DocumentationArea: Documentation