Skip to content

Commit

Permalink
commit
Browse files Browse the repository at this point in the history
  • Loading branch information
benesjan committed Jul 10, 2024
1 parent a8cc891 commit 7371f62
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions yarn-project/end-to-end/src/e2e_fees/private_refunds.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,13 +75,13 @@ describe('e2e_fees/private_refunds', () => {
})
.wait();

expect(tx.transactionFee).toBeGreaterThan(0);

// 3. We check that randomness for Bob was correctly emitted as an unencrypted log (Bobs needs it to reconstruct his note).
const resp = await aliceWallet.getUnencryptedLogs({ txHash: tx.txHash });
const bobRandomnessFromLog = Fr.fromBuffer(resp.logs[0].log.data);
expect(bobRandomnessFromLog).toEqual(bobRandomness);

expect(tx.transactionFee).toBeGreaterThan(0);

// 4. Now we compute the contents of the note containing the refund for Alice. The refund note value is simply
// the fee limit minus the final transaction fee. The other 2 fields in the note are Alice's npk_m_hash and
// the randomness.
Expand Down

0 comments on commit 7371f62

Please sign in to comment.