Skip to content

Commit

Permalink
add internal function test
Browse files Browse the repository at this point in the history
  • Loading branch information
arr00 committed Dec 30, 2024
1 parent d79198d commit 85196e7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/token/ERC6909/ERC6909.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,5 +70,11 @@ describe('ERC6909', function () {
});
});
});

it('reverts when transferring from the zero address', async function () {
await expect(this.token.$_transfer(ethers.ZeroAddress, this.holder, 1n, 1n))
.to.be.revertedWithCustomError(this.token, 'ERC6909InvalidSender')
.withArgs(ethers.ZeroAddress);
});
});
});

0 comments on commit 85196e7

Please sign in to comment.