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
We would like to have Forge as an environment as it provides the execution. This environment doesn't require tests/exploit integration as it is done by Forge itself.
We need to investigate if we can use advanced forge test -vv with advanced logging such as vm.record() to capture all transactions/events real-time and pass it to the monitor.
According to Foundry's documentation, it is possible to use advanced vm tracing capabilities:
// Enhanced test example using cheatcodesfunction testTransactionLogging() public {
vm.record(); // Start recording transactions
hello.updateGreeting("New Greeting");
// Fetch the recorded data
(bytes32[] memoryreads, bytes32[] memorywrites) = vm.accesses(address(hello));
for (uint i =0; i < writes.length; i++) {
emitlog_named_bytes32("Write Access", writes[i]);
}
// Optionally, you can also log the actual transaction data// using events, logs, or by interacting with external logging mechanisms.
}
The text was updated successfully, but these errors were encountered:
We would like to have Forge as an environment as it provides the execution. This environment doesn't require tests/exploit integration as it is done by Forge itself.
We need to investigate if we can use advanced
forge test -vv
with advanced logging such asvm.record()
to capture all transactions/events real-time and pass it to the monitor.According to Foundry's documentation, it is possible to use advanced vm tracing capabilities:
The text was updated successfully, but these errors were encountered: