Skip to content

Commit

Permalink
Update testOwnerMint
Browse files Browse the repository at this point in the history
  • Loading branch information
ninokeldishvili committed Nov 1, 2024
1 parent f7d83dc commit e0f815b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions test/src/concrete/receipt/Receipt.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -41,17 +41,18 @@ contract ReceiptTest is ReceiptFactoryTest {
address alice = vm.addr((fuzzedKeyAlice % (SECP256K1_ORDER - 1)) + 1);
amount = bound(amount, 1, 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));
receiptOwner.setTo(alice);

vm.startPrank(alice);
receiptOwner.ownerMint(receipt, alice, id, amount, data);

// Check the receipt balance of alice
Expand Down

0 comments on commit e0f815b

Please sign in to comment.