Converts the address that submitted a transaction to the inbox on L1 to the msg.sender viewed on L2.
Returns the msg.sender of the L1->L2 transaction as the address of the contract that initiated the transaction.
All available cases:
During a normal transaction, if contract A calls contract B, the msg.sender is A.
During L1->L2 communication, if an EOA X calls contract B, the msg.sender is X.
During L1->L2 communication, if a contract A calls contract B, the msg.sender is applyL1ToL2Alias(A).
Parameters
address: string
The address of the contract.
Returns string
The transformed address representing the msg.sender on L2.
Converts the address that submitted a transaction to the inbox on L1 to the
msg.sender
viewed on L2. Returns themsg.sender
of theL1->L2
transaction as the address of the contract that initiated the transaction.All available cases:
A
calls contractB
, themsg.sender
isA
.L1->L2
communication, if an EOAX
calls contractB
, themsg.sender
isX
.L1->L2
communication, if a contractA
calls contractB
, themsg.sender
isapplyL1ToL2Alias(A)
.