From e36dc4f3773026d8d53c2b519ca5f1fce793507f Mon Sep 17 00:00:00 2001 From: Atharva Naik Date: Wed, 25 Mar 2026 19:52:35 +0530 Subject: [PATCH] test: expect Unauthorized custom error in ownership transfer test --- contracts/test/Chainvoice.t.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contracts/test/Chainvoice.t.sol b/contracts/test/Chainvoice.t.sol index 2abb1ce9..59d6229c 100644 --- a/contracts/test/Chainvoice.t.sol +++ b/contracts/test/Chainvoice.t.sol @@ -122,7 +122,7 @@ contract ChainvoiceTest is Test { address newOwner = address(0xC0FFEE); vm.prank(alice); // alice is not the owner - vm.expectRevert("Only owner can call"); + vm.expectRevert(Chainvoice.Unauthorized.selector); chainvoice.initiateOwnershipTransfer(newOwner); vm.prank(address(this)); // this is the owner (from setUp)