Skip to content

Commit 8fba5a8

Browse files
committed
update comments
1 parent b1b7b1e commit 8fba5a8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib/mina/transaction.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ type Transaction<
131131
*/
132132
setFee(newFee:UInt64) : TransactionPromise<Proven,false>;
133133
/**
134-
* setFeePerSnarkCost behaves identically to {@link setFee} but the fee is given per Account Update in the transaction. This is useful because nodes prioritize transactions by fee per weight unit.
134+
* setFeePerSnarkCost behaves identically to {@link Transaction.setFee} but the fee is given per estimated cost of snarking the transition as given by {@link getTotalTimeRequired}. This is useful because it should reflect what snark workers would charge in times of network contention.
135135
*/
136136
setFeePerSnarkCost(newFeePerSnarkCost:number) : TransactionPromise<Proven,false>;
137137
} & (Proven extends false
@@ -276,7 +276,7 @@ type PendingTransaction = Pick<
276276
*/
277277
setFee(newFee:UInt64):TransactionPromise<boolean,false>;
278278
/**
279-
* setFeePerSnarkCost is the same as {@link Transaction.setFeeWU(newFeePerWU)} but for a {@link PendingTransaction}.
279+
* setFeePerSnarkCost is the same as {@link Transaction.setFeePerSnarkCost(newFeePerSnarkCost)} but for a {@link PendingTransaction}.
280280
*/
281281
setFeePerSnarkCost(newFeePerSnarkCost:number):TransactionPromise<boolean,false>;
282282
};

0 commit comments

Comments
 (0)