🏁
Concurrent Programming Guide
  • Welcome
  • Overview
  • data structure
    • Cumulative Integer
    • Base
    • Arrays
    • Ordered Maps
  • utility
    • Multiprocessor
    • Runtime
    • Storage
  • Examples
    • Contract Examples
Powered by GitBook
On this page
  1. utility

Storage

State Reseter

PreviousRuntimeNextContract Examples

Last updated 11 months ago

The contract provides a function to clear all storage changes made in the current block and reset the contract storage to its previous state. Caution should be exercised while using this contract, especially in the constructor, as it will cause the contract deployment to fail.

Public Functions

rollback

function rollback() public

Roll back all state changes made in the current block and reset the contract to the previous state.

Caution: Using this function in a contract constructor will cause the deployment to fail.

Revertible