Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
grandizzy committed Nov 15, 2024
1 parent a104fb4 commit 3632509
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion crates/cheatcodes/src/inspector.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1063,7 +1063,7 @@ where {
initialized = false;
old_balance = U256::ZERO;
}
let kind: Vm::AccountAccessKind = match call.scheme {
let kind = match call.scheme {
CallScheme::Call => crate::Vm::AccountAccessKind::Call,
CallScheme::CallCode => crate::Vm::AccountAccessKind::CallCode,
CallScheme::DelegateCall => crate::Vm::AccountAccessKind::DelegateCall,
Expand Down
3 changes: 2 additions & 1 deletion testdata/default/cheats/Prank.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,8 @@ contract PrankTest is DSTest {
}

function testFailPrankDelegateCallToEOA() public {
address alice = makeAddr("alice");
uint256 privateKey = uint256(keccak256(abi.encodePacked("alice")));
address alice = vm.addr(privateKey);
ImplementationTest impl = new ImplementationTest();
vm.prank(alice, true);
// Should fail when EOA pranked with delegatecall.
Expand Down

0 comments on commit 3632509

Please sign in to comment.