isPersistent
签名
function isPersistent(address) external returns (bool);
描述
返回一个账户是否被标记为持久化(makePersistent
)。
例子
检查 msg.sender
的默认状态和当前测试账户
// By default the `sender` and the test contract itself are persistent
assert(cheats.isPersistent(msg.sender));
assert(cheats.isPersistent(address(this)));