@contract.codeAt
Return the deployed bytecode at an address.
Returns: bytes
Syntax
Section titled “Syntax”@contract.codeAt(address)Arguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
address |
address |
Contract or account address |
Examples
Section titled “Examples”# Read contract bytecodeset $code @contract.codeAt(0xe91D153E0b41518A2Ce8Dd3D7944Fa863463a97d)See Also
Section titled “See Also”- @contract.storageAt — read a storage slot
- sim:set-code — override bytecode in simulation