feat: implement 0x3B - EXTCODESIZE Opcode #127
Labels
enhancement
New feature or request
opcode
Implementation of an opcode
smart-contract-logic
A specific type of opcode that requires smart contract logic as opposed to pure cairo
Milestone
Index 1 is top of the stack. See PUSH.
Stack input
address
: 20-byte address of the contract to query.Stack output
size
: byte size of the code.Example
1
0x43a61f3f4c73ea0d444c5c1c1a8544067a86219b
32
Reproduce in playground.
Error cases
The state changes done by the current context are reverted in those cases:
Gas
The static cost is 0. If the accessed address is warm, the dynamic cost is 100. Otherwise the dynamic cost is 2600. See section access sets.
Estimate your gas cost
The text was updated successfully, but these errors were encountered: