diff --git a/sui_programmability/framework/sources/Coin.move b/sui_programmability/framework/sources/Coin.move index dc79d477a33ae..42fd348b2e77f 100644 --- a/sui_programmability/framework/sources/Coin.move +++ b/sui_programmability/framework/sources/Coin.move @@ -84,6 +84,12 @@ module Sui::Coin { // === Registering new coin types and managing the coin supply === + /// Make any Coin with a zero value. Useful for placeholding + /// bids/payments or preemptively making empty balances. + public fun zero(ctx: &mut TxContext): Coin { + Coin { id: TxContext::new_id(ctx), value: 0 } + } + /// Create a new currency type `T` as and return the `TreasuryCap` /// for `T` to the caller. /// NOTE: It is the caller's responsibility to ensure that