-
-
Notifications
You must be signed in to change notification settings - Fork 879
Closed
Labels
bug - venombug in experimental venom pipelinebug in experimental venom pipelineneeds triageneeds triageneeds triage
Description
Version Information
- vyper Version (output of
vyper --version):0.4.4+commit.418dbda6 - OS: linux
- Python Version (output of
python --version):3.14.2
What's your issue about?
The commit 418dbda (PR #4795) introduces a regression in Vyper. My nightly snekmate tests were failing: https://github.com/pcaversaccio/snekmate/actions/runs/20632614478/job/59253113565#step:12:54191
Failing tests:
Encountered 1 failing test in test/governance/TimelockController.t.sol:TimelockControllerTest
[FAIL: Failed(0x5615dEB798BB3E4dFa0139dFa1b3D433Cc23b72f)] testHandleERC721() (gas: 1040430236)
Encountered 1 failing test in test/tokens/ERC20.t.sol:ERC20Invariants
[FAIL: Failed(0x5615dEB798BB3E4dFa0139dFa1b3D433Cc23b72f)] setUp() (gas: 0)
Encountered 1 failing test in test/tokens/ERC20.t.sol:ERC20Test
[FAIL: Failed(0x5615dEB798BB3E4dFa0139dFa1b3D433Cc23b72f)] setUp() (gas: 0)
Encountered 1 failing test in test/tokens/ERC721.t.sol:ERC721Invariants
[FAIL: Failed(0x5615dEB798BB3E4dFa0139dFa1b3D433Cc23b72f)] setUp() (gas: 0)
Encountered 1 failing test in test/tokens/ERC721.t.sol:ERC721Test
[FAIL: Failed(0x5615dEB798BB3E4dFa0139dFa1b3D433Cc23b72f)] setUp() (gas: 0)
Encountered a total of 5 failing tests, 631 tests succeeded │ ├─ [50607] → new <unknown>@0x104fBc016F4bb334D775a19E8A6510109AC63E00
│ │ ├─ emit OwnershipTransferred(previousOwner: 0x0000000000000000000000000000000000000000, newOwner: VyperDeployer: [0x5615dEB798BB3E4dFa0139dFa1b3D433Cc23b72f])
│ │ ├─ emit RoleMinterChanged(minter: VyperDeployer: [0x5615dEB798BB3E4dFa0139dFa1b3D433Cc23b72f], status: true)
│ │ └─ ← [InvalidOperandOOG]
│ └─ ← [Revert] Failed(0x5615dEB798BB3E4dFa0139dFa1b3D433Cc23b72f)
└─ ← [Revert] Failed(0x5615dEB798BB3E4dFa0139dFa1b3D433Cc23b72f)those are the Vyper contracts that generate invalid bytecode using venom with latest master commit:
- https://github.com/pcaversaccio/snekmate/blob/main/src/snekmate/governance/mocks/timelock_controller_mock.vy
- https://github.com/pcaversaccio/snekmate/blob/main/src/snekmate/tokens/mocks/erc20_mock.vy
- https://github.com/pcaversaccio/snekmate/blob/main/src/snekmate/tokens/mocks/erc721_mock.vy
How can it be fixed?
Make it a valid bytecode.
Metadata
Metadata
Assignees
Labels
bug - venombug in experimental venom pipelinebug in experimental venom pipelineneeds triageneeds triageneeds triage