Skip to content

Commit

Permalink
chore: update snapshots and test
Browse files Browse the repository at this point in the history
  • Loading branch information
Zer0dot committed Oct 11, 2024
1 parent 250cd57 commit 8991553
Show file tree
Hide file tree
Showing 23 changed files with 38 additions and 22 deletions.
2 changes: 1 addition & 1 deletion .forge-snapshots/ModularAccount_Runtime_Erc20Transfer.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
79922
79359
Original file line number Diff line number Diff line change
@@ -1 +1 @@
424617
424000
Original file line number Diff line number Diff line change
@@ -1 +1 @@
56044
55481
Original file line number Diff line number Diff line change
@@ -1 +1 @@
81252
80348
Original file line number Diff line number Diff line change
@@ -1 +1 @@
114829
113925
2 changes: 1 addition & 1 deletion .forge-snapshots/ModularAccount_UserOp_Erc20Transfer.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
186885
186599
Original file line number Diff line number Diff line change
@@ -1 +1 @@
532728
532388
2 changes: 1 addition & 1 deletion .forge-snapshots/ModularAccount_UserOp_NativeTransfer.snap
Original file line number Diff line number Diff line change
@@ -1 +1 @@
163050
162764
Original file line number Diff line number Diff line change
@@ -1 +1 @@
197394
196494
Original file line number Diff line number Diff line change
@@ -1 +1 @@
228536
227637
Original file line number Diff line number Diff line change
@@ -1 +1 @@
261579
261013
Original file line number Diff line number Diff line change
@@ -1 +1 @@
76246
75683
Original file line number Diff line number Diff line change
@@ -1 +1 @@
423396
422836
Original file line number Diff line number Diff line change
@@ -1 +1 @@
52368
51805
Original file line number Diff line number Diff line change
@@ -1 +1 @@
81624
80720
Original file line number Diff line number Diff line change
@@ -1 +1 @@
115201
114297
Original file line number Diff line number Diff line change
@@ -1 +1 @@
182144
181858
Original file line number Diff line number Diff line change
@@ -1 +1 @@
530208
529925
Original file line number Diff line number Diff line change
@@ -1 +1 @@
158303
158017
Original file line number Diff line number Diff line change
@@ -1 +1 @@
197569
196669
Original file line number Diff line number Diff line change
@@ -1 +1 @@
228723
227824
Original file line number Diff line number Diff line change
@@ -1 +1 @@
258011
257442
16 changes: 16 additions & 0 deletions test/account/ExecutionInstallDelegate.t.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
// SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.8.26;

import {ExecutionInstallDelegate} from "../../src/helpers/ExecutionInstallDelegate.sol";
import {AccountTestBase} from "../utils/AccountTestBase.sol";
import {ExecutionManifest} from "@erc6900/reference-implementation/interfaces/IExecutionModule.sol";

contract ExecutionInstallDelegateTest is AccountTestBase {
function test_fail_directCall_delegateCallOnly() public {
ExecutionInstallDelegate delegate = new ExecutionInstallDelegate();
ExecutionManifest memory emptyManifest;

vm.expectRevert(ExecutionInstallDelegate.OnlyDelegateCall.selector);
delegate.installExecution({module: address(0), manifest: emptyManifest, moduleInstallData: ""});
}
}

0 comments on commit 8991553

Please sign in to comment.