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

bug(cheatcodes): deal does not work with Overnight.fi USD+ #8916

Open
2 tasks
thepluck opened this issue Sep 21, 2024 · 2 comments
Open
2 tasks

bug(cheatcodes): deal does not work with Overnight.fi USD+ #8916

thepluck opened this issue Sep 21, 2024 · 2 comments
Labels
A-cheatcodes Area: cheatcodes T-bug Type: bug

Comments

@thepluck
Copy link

Component

Forge

Have you ensured that all of these are up to date?

  • Foundry
  • Foundryup

What version of Foundry are you on?

forge 0.2.0 (2442e7a 2024-08-28T00:20:11.390296375Z)

What command(s) is the bug in?

forge test

Operating System

Linux

Describe the bug

When using 'deal' with Overnight.fi USD+, it will fail with the following error:

    ├─ [0] VM::store(0xB79DD08EA68A908A97220C76d19A6aA9cBDE4376, 0x86352f061a975ea9f306ab8879222ebda71d83ef729b31963c8ea1eee97b258d, 0x0000000000000000000000000000000000000000000000000000000000000000)
    │   └─ ← [Return] 
    └─ ← [Revert] revert: stdStorage find(StdStorage): Failed to write value.

Token tracker page: https://basescan.org/token/0xB79DD08EA68A908A97220C76d19A6aA9cBDE4376

@thepluck thepluck added T-bug Type: bug T-needs-triage Type: this issue needs to be labelled labels Sep 21, 2024
@zerosnacks zerosnacks added A-cheatcodes Area: cheatcodes T-to-investigate Type: to investigate and removed T-needs-triage Type: this issue needs to be labelled labels Sep 21, 2024
@zerosnacks zerosnacks changed the title "deal" does not work with Overnight.fi USD+ bug(cheatcodes): deal does not work with Overnight.fi USD+ Sep 21, 2024
@yash-atreya
Copy link
Member

@thepluck I cannot reproduce this. Can you share more details? Perhaps, some demo code and exact command

@yash-atreya yash-atreya removed the T-to-investigate Type: to investigate label Sep 23, 2024
@thepluck
Copy link
Author

@yash-atreya Sorry for the late response, here is a simplified code snippet that led to the error.

// SPDX-License-Identifier: MIT
pragma solidity 0.8.9;

import 'forge-std/Test.sol';
import 'contracts/interfaces/aerodromev1/IAerodromeV1Pair.sol';

contract Base is Test {
  string BASE_RPC_URL = vm.envString('BASE_NODE_URL');
  uint256 FORK_BLOCK = 19713107;
  uint256 baseFork;
  address deployer = makeAddr('deployer');

  function setUp() public {
    baseFork = vm.createFork(BASE_RPC_URL);
    vm.selectFork(baseFork);
    vm.rollFork(FORK_BLOCK);
  }

  function testTest(uint256 seed) public {
    deal(0xB79DD08EA68A908A97220C76d19A6aA9cBDE4376, deployer, seed);
  }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-cheatcodes Area: cheatcodes T-bug Type: bug
Projects
None yet
Development

No branches or pull requests

3 participants