From ac42087bfe846af357e2d6b8ae0ef64f0def1dc0 Mon Sep 17 00:00:00 2001 From: ninokeldishvili Date: Fri, 1 Nov 2024 16:18:16 +0400 Subject: [PATCH] Update testTransferOwnerTransferFrom --- test/src/concrete/receipt/Receipt.t.sol | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/src/concrete/receipt/Receipt.t.sol b/test/src/concrete/receipt/Receipt.t.sol index 052d9e24..da6b6152 100644 --- a/test/src/concrete/receipt/Receipt.t.sol +++ b/test/src/concrete/receipt/Receipt.t.sol @@ -226,11 +226,13 @@ contract ReceiptTest is ReceiptFactoryTest { amount = bound(amount, 1, type(uint256).max); id = bound(id, 0, type(uint256).max); - TestReceipt receipt = new TestReceipt(); + TestReceipt receipt = createReceipt(alice); TestReceiptOwner receiptOwner = new TestReceiptOwner(); + vm.startPrank(alice); + // Set the receipt owner - receipt.setOwner(address(receiptOwner)); + receipt.transferOwnership(address(receiptOwner)); // Set the authorized 'from' and 'to' addresses in receiptOwner receiptOwner.setFrom(address(0));