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 22f381d..c92a574 100644 --- a/test/encryptedERC20/EncryptedERC20WithErrors.test.ts +++ b/test/encryptedERC20/EncryptedERC20WithErrors.test.ts @@ -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 () {