Skip to content
This repository was archived by the owner on Feb 26, 2024. It is now read-only.
This repository was archived by the owner on Feb 26, 2024. It is now read-only.

Debugger shows incorrect value for a Yul variable #6157

@cds-amal

Description

@cds-amal

While evaluating #6154 I noticed this strange behavior where the expected value for a variable should be 0, but we get 1.

Steps to Reproduce

  1. Clone this Repo
  2. truffle develop
  3.  truffle(develop) migrate
     D = await DelegateTestYulString.deployed()
     await D.setValue("Hello")
     // grab transaction hash
  4. In a separate terminal console:
    truffle debug --url http://127.0.0.1:9545 txhash
    b YulString.yul:179
    c
    :v
    # expect 0, but got 1

Environment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions