Skip to content

Why is only the first call frame aliased? #414

Discussion options

You must be logged in to vote

It's easier to say that tx.origin get aliased, not msg.sender

And on the first call frame, msg.sender == tx.origin

But on subsequent call (internal transactions), msg.sender is equal to the contract that call another contract which may not equal to the aliases tx.origin

You can think of that aliased address as an EOA calling the contract on L2, it will behave exactly same like this.

Replies: 3 comments 7 replies

Comment options

You must be logged in to vote
6 replies
@hash1go
Comment options

@opfocus
Comment options

@PaulRBerg
Comment options

@opfocus
Comment options

@PaulRBerg
Comment options

Comment options

You must be logged in to vote
1 reply
@PaulRBerg
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by PaulRBerg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core-protocol Questions relating to the core protocol and how the OP Stack works. discussion-metrics Used by Github Action to gather discussion metrics on the question and answer section.
5 participants