Add tests for improved coverage (#3448)

Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
This commit is contained in:
Hadrien Croubois
2022-06-03 01:01:55 +02:00
committed by GitHub
parent 04204b8fb9
commit 35090c1bf1
9 changed files with 81 additions and 69 deletions

View File

@ -17,6 +17,11 @@ function shouldBehaveLikeReceiver (sender = randomAddress()) {
this.receiver.crossChainRestricted(),
'NotCrossChainCall()',
);
await expectRevertCustomError(
this.receiver.crossChainOwnerRestricted(),
'NotCrossChainCall()',
);
});
it('should restrict to cross-chain call from a invalid sender', async function () {