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 27, 2024
1 parent f561e0c commit 046277e
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 @@ -350,7 +350,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 046277e

Please sign in to comment.