diff --git a/test/encryptedERC20/EncryptedERC20.test.ts b/test/encryptedERC20/EncryptedERC20.test.ts index 98830a1..608d0ef 100644 --- a/test/encryptedERC20/EncryptedERC20.test.ts +++ b/test/encryptedERC20/EncryptedERC20.test.ts @@ -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 () { diff --git a/test/encryptedERC20/EncryptedERC20WithErrors.test.ts b/test/encryptedERC20/EncryptedERC20WithErrors.test.ts index d794b98..0ec5ab0 100644 --- a/test/encryptedERC20/EncryptedERC20WithErrors.test.ts +++ b/test/encryptedERC20/EncryptedERC20WithErrors.test.ts @@ -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 () {