msg.sender tells me who initialized the transaction but what if I want to restrict access to a contracts function to only one other contract? Is there a msg.caller equivalent?

Mar 26, 2021, 9:59 PM
actually tx.origin is who initialized the transaction, msg.sender is the function caller (which can be another contrct)
Mar 28, 2021, 1:40 AM

© 2024 Draquery.com All rights reserved.