From a77b6f044ac2e9a1ac8036fb1d1968904cd0c715 Mon Sep 17 00:00:00 2001 From: Matthias Seitz Date: Fri, 26 Jan 2024 14:41:14 +0100 Subject: [PATCH] test: add another fork test --- crates/forge/tests/it/repros.rs | 3 +++ testdata/repros/Issue5929.t.sol | 16 ++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 testdata/repros/Issue5929.t.sol diff --git a/crates/forge/tests/it/repros.rs b/crates/forge/tests/it/repros.rs index 61d9d97ff853..d5dee2523e1e 100644 --- a/crates/forge/tests/it/repros.rs +++ b/crates/forge/tests/it/repros.rs @@ -195,6 +195,9 @@ test_repro!(5038); // https://github.com/foundry-rs/foundry/issues/5808 test_repro!(5808); +// +test_repro!(5929); + // test_repro!(5935); diff --git a/testdata/repros/Issue5929.t.sol b/testdata/repros/Issue5929.t.sol new file mode 100644 index 000000000000..53ca10ae86e2 --- /dev/null +++ b/testdata/repros/Issue5929.t.sol @@ -0,0 +1,16 @@ +// SPDX-License-Identifier: MIT OR Apache-2.0 +pragma solidity 0.8.18; + +import "ds-test/test.sol"; +import "../cheats/Vm.sol"; + +// https://github.com/foundry-rs/foundry/issues/5929 +contract Issue5929Test is DSTest { + Vm constant vm = Vm(HEVM_ADDRESS); + + function test_transact_not_working() public { + vm.createSelectFork("rpcAlias", 15625301); + // https://etherscan.io/tx/0x96a129768ec66fd7d65114bf182f4e173bf0b73a44219adaf71f01381a3d0143 + vm.transact(hex"96a129768ec66fd7d65114bf182f4e173bf0b73a44219adaf71f01381a3d0143"); + } +}