Skip to content

Commit

Permalink
add project
Browse files Browse the repository at this point in the history
  • Loading branch information
heew committed May 20, 2024
1 parent 22f02f4 commit 356a560
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion _posts/2024-05-20-vm.startBroadcast().markdown
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,6 @@ Logs:
I log the `msg.sender of Test contract`,`address of Test contract`,`msg.sender of Deploy contract`,`address of Deploy contract`,`tx.origin`
In my code, after `vm.startBroadcast()` the MyToken contract store `msg.sender` in varible `owner`.

As log shown in the terminal, we can see that owner is equal to `msg.sender of Test contract` and `tx.origin`. So we can infer that `vm.startBroadcast()` set the `tx.origin`.
As log shown in the terminal, we can see that owner is equal to `msg.sender of Test contract` and `tx.origin`. So we can infer that `vm.startBroadcast()` set the `tx.origin`.

[whole project in github](https://github.com/heeween/MyToken)

0 comments on commit 356a560

Please sign in to comment.