本文介绍了 Foundry 的一个非常有用的 Cheatcode:vm.prank,它允许开发者在测试中模拟任何地址作为 msg.sender,从而方便地测试访问控制和各种边界情况。
msg.sender