Skip to content

Commit c056e59

Browse files
ryestewAniket-Engg
authored andcommitted
update explaination
1 parent 00c725a commit c056e59

File tree

1 file changed

+6
-2
lines changed
  • libs/remix-ws-templates/src/templates/introToEIP7702

1 file changed

+6
-2
lines changed

libs/remix-ws-templates/src/templates/introToEIP7702/README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ But with the Pectra upgrade, EOAs can now host and can directly run code.
1313

1414
### Demo of a batched transaction
1515

16-
This demo will show an example of a batched (not botched) transaction. Before batching, sending a token required two transactions: one to allow the transfer and another to send the token. With batching, these function calls can be done in a single transaction.
16+
This demo will show an example of a batched transaction. Before batching with EIP7702, sending a token required two transactions: one to allow the transfer and another to send the token. With batching, these function calls can be done in a single transaction.
1717

1818
Assign a piece of code to an EOA:
1919

@@ -24,7 +24,11 @@ Assign a piece of code to an EOA:
2424
- In Deploy and Run, check the new deployed contract. It has the same address as the EOA that was assigned to SIMPLE7702ACCOUNT.
2525

2626
Setting up the data for the batch:
27-
- Run the script `run-eip7702.ts`.
27+
28+
- Run the script `run-eip7702.ts`.
29+
30+
The script `run-eip7702.ts` will deploy two contracts, MyToken and Spender. It will then mint 1000000 token to the first address of the Remix VM. Then it will encode the approval for the Spender address to spend and it will encode the call to the send function of 10000 tokens to the second account of the Remix VM. The encodings will be logged the terminal.
31+
2832
- In the terminal, copy the logged data from console.log(executeBatch).
2933
- Back in Deploy & Run, find the DELEGATED SIMPLE7702ACCOUNT and open it up to see its functions.
3034
- In the **executeBatch** function, paste the data and then run the transaction.

0 commit comments

Comments
 (0)