You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Console logs does not include variable and are not displayed in forge scripts in era-test-node
🔄 Reproduction Steps
Build era_test_node
./era_test_node run
Init a foundry project (forge init hello_world)
cd hello_world
Update template script to the following:
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.13;
import {Script, console} from "forge-std/Script.sol";
import {Counter} from "../src/Counter.sol";
import {console2} from "forge-std/console2.sol";
contract CounterScript is Script {
Counter public counter;
function setUp() public {}
function run() public {
vm.startBroadcast();
counter = new Counter();
console.log("Counter address: ", address(counter));
counter.setNumber(10);
vm.stopBroadcast();
}
}
📝 Description
Console logs does not include variable and are not displayed in forge scripts in era-test-node
🔄 Reproduction Steps
./era_test_node run
forge init hello_world
)cd hello_world
🤔 Expected Behavior
See console as written
😯 Current Behavior
You do not see the console log in scripts, and you do not see the variable even in contract
🖥️ Environment
📋 Additional Context
Add any other context about the problem here. If applicable, add screenshots to help explain.
📎 Log Output
The text was updated successfully, but these errors were encountered: