Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: make AssertOriginCall always panic with MsgRun #1665

Merged

Commits on Apr 22, 2024

  1. feat: make AssertOriginCall always panic with MsgRun

    Fix gnolang#1663
    
    `AssertOriginCall` used to panic on `MsgRun` because it involves more
    than 2 frames. But we want to reinforce that property, with an
    additional check.
    
    Added an improved version of the unit and txtar tests from gnolang#1048. In
    particular, the txtar adds 2 more cases :
    
    19) MsgCall invokes std.AssertOriginCall directly: pass
    20) MsgRun invokes std.AssertOriginCall directly: PANIC
    
    Note that 19) involves a change in the AssertOriginCall algorithm,
    because in that situation there's only a single frame. Even if there's
    no reason to call `std.AssertOriginCall()` directly from the command
    line, I think it's logic to make it pass, because that's a origin call.
    tbruyelle committed Apr 22, 2024
    Configuration menu
    Copy the full SHA
    dde31f6 View commit details
    Browse the repository at this point in the history
  2. fix tests

    tbruyelle committed Apr 22, 2024
    Configuration menu
    Copy the full SHA
    8a195d6 View commit details
    Browse the repository at this point in the history
  3. Update gnovm/stdlibs/std/native.gno

    Co-authored-by: Leon Hudak <33522493+leohhhn@users.noreply.github.com>
    tbruyelle and leohhhn committed Apr 22, 2024
    Configuration menu
    Copy the full SHA
    b39f0c3 View commit details
    Browse the repository at this point in the history
  4. Update gnovm/stdlibs/std/native.gno

    Co-authored-by: Leon Hudak <33522493+leohhhn@users.noreply.github.com>
    tbruyelle and leohhhn committed Apr 22, 2024
    Configuration menu
    Copy the full SHA
    1b2e20c View commit details
    Browse the repository at this point in the history
  5. fix tests

    tbruyelle committed Apr 22, 2024
    Configuration menu
    Copy the full SHA
    f4f867e View commit details
    Browse the repository at this point in the history

Commits on May 15, 2024

  1. Configuration menu
    Copy the full SHA
    18eee35 View commit details
    Browse the repository at this point in the history
  2. fix conflicts

    tbruyelle committed May 15, 2024
    Configuration menu
    Copy the full SHA
    88b4a27 View commit details
    Browse the repository at this point in the history
  3. fix tests

    tbruyelle committed May 15, 2024
    Configuration menu
    Copy the full SHA
    3e5839a View commit details
    Browse the repository at this point in the history

Commits on May 27, 2024

  1. Configuration menu
    Copy the full SHA
    f1fe7b9 View commit details
    Browse the repository at this point in the history
  2. use loadpkg

    thehowl committed May 27, 2024
    Configuration menu
    Copy the full SHA
    33f691c View commit details
    Browse the repository at this point in the history
  3. fix tests

    thehowl committed May 27, 2024
    Configuration menu
    Copy the full SHA
    31a6ef4 View commit details
    Browse the repository at this point in the history