Skip to content

Commit

Permalink
test: adjustments for failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
PacificYield committed Nov 28, 2024
1 parent 6b6feb8 commit 7952ebe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/encryptedERC20/EncryptedERC20.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ describe("EncryptedERC20", function () {
[
"transfer(address,bytes32,bytes)"
](NULL_ADDRESS, encryptedTransferAmount.handles[0], encryptedTransferAmount.inputProof),
).to.be.revertedWithCustomError(this.encryptedERC20, "ReceiverAddressNull");
).to.be.revertedWithCustomError(this.encryptedERC20, "ERC20InvalidReceiver");
});

it("sender who is not allowed cannot transfer using a handle from another account", async function () {
Expand Down
2 changes: 1 addition & 1 deletion test/encryptedERC20/EncryptedERC20WithErrors.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ describe("EncryptedERC20WithErrors", function () {
[
"transfer(address,bytes32,bytes)"
](NULL_ADDRESS, encryptedTransferAmount.handles[0], encryptedTransferAmount.inputProof),
).to.be.revertedWithCustomError(this.encryptedERC20, "ReceiverAddressNull");
).to.be.revertedWithCustomError(this.encryptedERC20, "ERC20InvalidReceiver");
});

it("sender who is not allowed cannot transfer using a handle from another account", async function () {
Expand Down

0 comments on commit 7952ebe

Please sign in to comment.