Skip to content
This repository has been archived by the owner on Apr 4, 2024. It is now read-only.

use stack of contexts to implement snapshot revert #399

Merged
merged 7 commits into from
Aug 10, 2021

Commits on Aug 10, 2021

  1. use stack of contexts to implement snapshot revert

    Closes #338
    
    add exception revert test case
    
    verify partial revert
    
    mutate state after the reverted subcall
    
    polish
    
    update comments
    
    name the module after the type name
    
    remove the unnecessary Snapshot in outer layer
    
    and add snapshot unit test
    
    assert context stack is clean after tx processing
    
    cleanups
    
    fix context revert
    
    fix comments
    
    update comments
    
    it's ok to commit in failed case too
    
    Update x/evm/keeper/context_stack.go
    
    Co-authored-by: Federico Kunze Küllmer <[email protected]>
    
    Update x/evm/keeper/context_stack.go
    
    Co-authored-by: Federico Kunze Küllmer <[email protected]>
    
    Update x/evm/keeper/context_stack.go
    
    Co-authored-by: Federico Kunze Küllmer <[email protected]>
    
    update comment and error message
    
    add comment to cacheContext
    
    k -> cs
    
    Update x/evm/keeper/context_stack.go
    
    Co-authored-by: Federico Kunze Küllmer <[email protected]>
    
    evm can handle state revert
    
    renames and unit tests
    yihuang committed Aug 10, 2021
    Configuration menu
    Copy the full SHA
    8b87679 View commit details
    Browse the repository at this point in the history
  2. use table driven tests

    yihuang committed Aug 10, 2021
    Configuration menu
    Copy the full SHA
    9e7072d View commit details
    Browse the repository at this point in the history
  3. keep all the cosmos events

    yihuang committed Aug 10, 2021
    Configuration menu
    Copy the full SHA
    2ee7936 View commit details
    Browse the repository at this point in the history
  4. changelog

    yihuang committed Aug 10, 2021
    Configuration menu
    Copy the full SHA
    0d97f6f View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    3a8c511 View commit details
    Browse the repository at this point in the history
  6. fix changelog

    yihuang committed Aug 10, 2021
    Configuration menu
    Copy the full SHA
    f018e64 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    23e2ee9 View commit details
    Browse the repository at this point in the history