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
Describe the bug
Although some internal transactions were failed, it also show the successful in the token transfer and internal transactions.
To Reproduce
Trace attack code.
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.25;
contract TraceAttack {
uint256 public testNumber = 42;
function attackSim() external payable {
(bool success, ) = address(this).call(abi.encodeWithSignature("innerAttackSim()"));
require(success == false, "innerAttack should revert");
}
function innerAttackSim(address test) external {
// Because we revert, this trasfer be as if it never happened
payable(test).transfer(address(this).balance);
// Because we revert, testNumber will be unchanged
testNumber = 0xbad;
// Revert
require(false, "Nope");
}
}
Expected behavior
The revert internal transfer will not display, and the internal transaction will display the error.
Describe the bug
Although some internal transactions were failed, it also show the successful in the token transfer and internal transactions.
To Reproduce
Trace attack code.
Expected behavior
The revert internal transfer will not display, and the internal transaction will display the error.
Screenshots
![image](https://private-user-images.githubusercontent.com/118713913/361140576-f58184be-7303-4c0f-bd55-55689e016afd.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzNDE1MTcsIm5iZiI6MTczOTM0MTIxNywicGF0aCI6Ii8xMTg3MTM5MTMvMzYxMTQwNTc2LWY1ODE4NGJlLTczMDMtNGMwZi1iZDU1LTU1Njg5ZTAxNmFmZC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjEyJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxMlQwNjIwMTdaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1kNGY5YjA1MDNmOGE1NzMyZGFmNzgyNzA2ZTc0OTQyN2E5YzUyNmUzYTRmZTk0MzBjYjgxZTdhMzBiZGUyMzg0JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.Uiie7p1bNcDyg442I4YeZh5w0Rd5mP-JHkyOcMpN4jE)
If applicable, add screenshots to help explain your problem.
https://beaconcha.in/tx/f7d385f000250c073dfef9a36327c5d30a4c77a0c50588ce3eded29f6829a4cd#overview
Desktop (please complete the following information):
Phone (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: