Skip to content

Commit

Permalink
Update testTransferOwnerTransferFrom
Browse files Browse the repository at this point in the history
  • Loading branch information
ninokeldishvili committed Nov 1, 2024
1 parent 75f4a11 commit ac42087
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/src/concrete/receipt/Receipt.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit ac42087

Please sign in to comment.