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
Copy file name to clipboardExpand all lines: src/cheatcodes/sign-delegation.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -49,7 +49,7 @@ To use the cheatcodes you need to set your `evm_version` to at least the `prague
49
49
evm_version = "prague"
50
50
```
51
51
52
-
EIP-7702 sets the account code of an Externally Owned Account (EOA) temporarily during a transaction. This enables EOAs to behave like smart contracts for the duration of a transaction without permanently modifying their code.
52
+
EIP-7702 sets the account code of an Externally Owned Account (EOA) through a delegation transaction, enabling EOAs to behave like smart contracts.
53
53
54
54
The `signDelegation` cheatcode generates a signed authorization for an implementation contract to be delegated to, ensuring that only authorized implementations can execute transactions on behalf of the authority account. The signature includes the authority account's nonce to prevent replay attacks.
55
55
@@ -151,11 +151,11 @@ contract SignDelegationTest is Test {
151
151
vm.broadcast(BOB_PK);
152
152
vm.attachDelegation(signedDelegation);
153
153
154
-
// Verify that Alice's account now temporarily behaves as a smart contract.
154
+
// Verify that Alice's account now behaves as a smart contract.
155
155
bytes memory code = address(ALICE_ADDRESS).code;
156
156
require(code.length > 0, "no code written to Alice");
157
157
158
-
// As Bob, execute the transaction via Alice's temporarily assigned contract.
158
+
// As Bob, execute the transaction via Alice's assigned contract.
0 commit comments