Replaces the class hash of the current contract, instantly modifying its entrypoints. The new class becomes effective only after the current function call completes. The remaining code in the current function will continue executing from the old class. The new class will be used:Documentation Index
Fetch the complete documentation index at: https://docs.starknet.io/llms.txt
Use this file to discover all available pages before exploring further.
- In subsequent transactions
- If the contract is called via
call_contractsyscall later in the same transaction
Signature
Arguments
class_hash- The class hash that should replace the current one.