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.senderviewed on L2. Returns themsg.senderof theL1->L2transaction as the address of the contract that initiated the transaction.All available cases:
Acalls contractB, themsg.senderisA.L1->L2communication, if an EOAXcalls contractB, themsg.senderisX.L1->L2communication, if a contractAcalls contractB, themsg.senderisapplyL1ToL2Alias(A).