Skip to content

Commit

Permalink
add custom error check
Browse files Browse the repository at this point in the history
  • Loading branch information
Amxx committed Mar 24, 2022
1 parent 5e1dfa2 commit ab77189
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions test/crosschain/CrossChainEnabled.test.js
Expand Up @@ -32,11 +32,10 @@ function shouldBehaveLikeReceiver (sender = randomAddress()) {
});

it('should restrict to cross-chain call from a invalid sender', async function () {
await expectRevert(CrossChainHelper.call(
sender,
this.receiver,
'crossChainOwnerRestricted()',
));
await expectRevert(
CrossChainHelper.call(sender, this.receiver, 'crossChainOwnerRestricted()'),
`InvalidCrossChainSender("${sender}", "${await this.receiver.owner()}")`,
);
});

it('should grant access to cross-chain call from the owner', async function () {
Expand Down

0 comments on commit ab77189

Please sign in to comment.