Skip to content

Commit

Permalink
patch docs for transfer_policy
Browse files Browse the repository at this point in the history
  • Loading branch information
damirka committed May 22, 2023
1 parent 573019c commit 6f5cd07
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions crates/sui-framework/docs/transfer_policy.md
Original file line number Diff line number Diff line change
Expand Up @@ -360,10 +360,10 @@ the transaction will fail.

## Function `new`

Register a type in the Kiosk system and receive an <code><a href="transfer_policy.md#0x2_transfer_policy_TransferPolicyCap">TransferPolicyCap</a></code>
which is required to confirm kiosk deals for the <code>T</code>. If there's no
<code><a href="transfer_policy.md#0x2_transfer_policy_TransferPolicyCap">TransferPolicyCap</a></code> available for use, the type can not be traded in
kiosks.
Register a type in the Kiosk system and receive a <code><a href="transfer_policy.md#0x2_transfer_policy_TransferPolicy">TransferPolicy</a></code> and
a <code><a href="transfer_policy.md#0x2_transfer_policy_TransferPolicyCap">TransferPolicyCap</a></code> for the type. The <code><a href="transfer_policy.md#0x2_transfer_policy_TransferPolicy">TransferPolicy</a></code> is required to
confirm kiosk deals for the <code>T</code>. If there's no <code><a href="transfer_policy.md#0x2_transfer_policy_TransferPolicy">TransferPolicy</a></code>
available for use, the type can not be traded in kiosks.


<pre><code><b>public</b> <b>fun</b> <a href="transfer_policy.md#0x2_transfer_policy_new">new</a>&lt;T&gt;(pub: &<a href="package.md#0x2_package_Publisher">package::Publisher</a>, ctx: &<b>mut</b> <a href="tx_context.md#0x2_tx_context_TxContext">tx_context::TxContext</a>): (<a href="transfer_policy.md#0x2_transfer_policy_TransferPolicy">transfer_policy::TransferPolicy</a>&lt;T&gt;, <a href="transfer_policy.md#0x2_transfer_policy_TransferPolicyCap">transfer_policy::TransferPolicyCap</a>&lt;T&gt;)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,10 @@ module sui::transfer_policy {
TransferRequest { item, paid, from, receipts: vec_set::empty() }
}

/// Register a type in the Kiosk system and receive an `TransferPolicyCap`
/// which is required to confirm kiosk deals for the `T`. If there's no
/// `TransferPolicyCap` available for use, the type can not be traded in
/// kiosks.
/// Register a type in the Kiosk system and receive a `TransferPolicy` and
/// a `TransferPolicyCap` for the type. The `TransferPolicy` is required to
/// confirm kiosk deals for the `T`. If there's no `TransferPolicy`
/// available for use, the type can not be traded in kiosks.
public fun new<T>(
pub: &Publisher, ctx: &mut TxContext
): (TransferPolicy<T>, TransferPolicyCap<T>) {
Expand Down

0 comments on commit 6f5cd07

Please sign in to comment.