Skip to content

Commit

Permalink
Add some use funs, clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
cgswords committed Mar 20, 2024
1 parent 4cda6d7 commit 04b03e8
Show file tree
Hide file tree
Showing 29 changed files with 232 additions and 216 deletions.
10 changes: 5 additions & 5 deletions crates/sui-framework/docs/sui-framework/address.md
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ Convert <code>a</code> to a hex-encoded ASCII string


<pre><code><b>public</b> <b>fun</b> <a href="../sui-framework/address.md#0x2_address_to_ascii_string">to_ascii_string</a>(a: <b>address</b>): <a href="../move-stdlib/ascii.md#0x1_ascii_String">ascii::String</a> {
a.<a href="../sui-framework/address.md#0x2_address_to_bytes">to_bytes</a>().hex_encode().<a href="../sui-framework/address.md#0x2_address_to_string">to_string</a>()
<a href="../sui-framework/hex.md#0x2_hex_encode">hex::encode</a>(a.<a href="../sui-framework/address.md#0x2_address_to_bytes">to_bytes</a>()).<a href="../sui-framework/address.md#0x2_address_to_ascii_string">to_ascii_string</a>()
}
</code></pre>

Expand All @@ -186,7 +186,7 @@ Convert <code>a</code> to a hex-encoded ASCII string

## Function `to_string`

Convert <code>a</code> to a hex-encoded ASCII string
Convert <code>a</code> to a hex-encoded string


<pre><code><b>public</b> <b>fun</b> <a href="../sui-framework/address.md#0x2_address_to_string">to_string</a>(a: <b>address</b>): <a href="../move-stdlib/string.md#0x1_string_String">string::String</a>
Expand All @@ -199,7 +199,7 @@ Convert <code>a</code> to a hex-encoded ASCII string


<pre><code><b>public</b> <b>fun</b> <a href="../sui-framework/address.md#0x2_address_to_string">to_string</a>(a: <b>address</b>): <a href="../move-stdlib/string.md#0x1_string_String">string::String</a> {
a.<a href="../sui-framework/address.md#0x2_address_to_ascii_string">to_ascii_string</a>().from_ascii()
a.<a href="../sui-framework/address.md#0x2_address_to_ascii_string">to_ascii_string</a>().<a href="../sui-framework/address.md#0x2_address_to_string">to_string</a>()
}
</code></pre>

Expand Down Expand Up @@ -233,8 +233,8 @@ or if an invalid character is encountered.
<b>let</b> <b>mut</b> hex_bytes = <a href="../move-stdlib/vector.md#0x1_vector">vector</a>[];
<b>let</b> <b>mut</b> i = 0;
<b>while</b> (i &lt; 64) {
<b>let</b> hi = bytes[i].<a href="../sui-framework/address.md#0x2_address_hex_char_value">hex_char_value</a>();
<b>let</b> lo = bytes[i+1].<a href="../sui-framework/address.md#0x2_address_hex_char_value">hex_char_value</a>();
<b>let</b> hi = <a href="../sui-framework/address.md#0x2_address_hex_char_value">hex_char_value</a>(bytes[i]);
<b>let</b> lo = <a href="../sui-framework/address.md#0x2_address_hex_char_value">hex_char_value</a>(bytes[i+1]);
hex_bytes.push_back((hi &lt;&lt; 4) | lo);
i = i + 2;
};
Expand Down
10 changes: 5 additions & 5 deletions crates/sui-framework/docs/sui-framework/groth16.md
Original file line number Diff line number Diff line change
Expand Up @@ -282,11 +282,11 @@ Returns bytes of the four components of the <code><a href="groth16.md#0x2_groth1


<pre><code><b>public</b> <b>fun</b> <a href="groth16.md#0x2_groth16_pvk_to_bytes">pvk_to_bytes</a>(pvk: <a href="groth16.md#0x2_groth16_PreparedVerifyingKey">PreparedVerifyingKey</a>): <a href="../move-stdlib/vector.md#0x1_vector">vector</a>&lt;<a href="../move-stdlib/vector.md#0x1_vector">vector</a>&lt;u8&gt;&gt; {
<b>let</b> <b>mut</b> res = <a href="../move-stdlib/vector.md#0x1_vector_empty">vector::empty</a>();
<a href="../move-stdlib/vector.md#0x1_vector_push_back">vector::push_back</a>(&<b>mut</b> res, pvk.vk_gamma_abc_g1_bytes);
<a href="../move-stdlib/vector.md#0x1_vector_push_back">vector::push_back</a>(&<b>mut</b> res, pvk.alpha_g1_beta_g2_bytes);
<a href="../move-stdlib/vector.md#0x1_vector_push_back">vector::push_back</a>(&<b>mut</b> res, pvk.gamma_g2_neg_pc_bytes);
<a href="../move-stdlib/vector.md#0x1_vector_push_back">vector::push_back</a>(&<b>mut</b> res, pvk.delta_g2_neg_pc_bytes);
<b>let</b> <b>mut</b> res = <a href="../move-stdlib/vector.md#0x1_vector">vector</a>[];
res.push_back(pvk.vk_gamma_abc_g1_bytes);
res.push_back(pvk.alpha_g1_beta_g2_bytes);
res.push_back(pvk.gamma_g2_neg_pc_bytes);
res.push_back(pvk.delta_g2_neg_pc_bytes);
res
}
</code></pre>
Expand Down
98 changes: 49 additions & 49 deletions crates/sui-framework/docs/sui-framework/group_ops.md

Large diffs are not rendered by default.

90 changes: 45 additions & 45 deletions crates/sui-framework/docs/sui-framework/kiosk.md

Large diffs are not rendered by default.

24 changes: 12 additions & 12 deletions crates/sui-framework/docs/sui-framework/kiosk_extension.md
Original file line number Diff line number Diff line change
Expand Up @@ -258,9 +258,9 @@ permissions in the custom <code>add</code> call.
permissions: u128,
ctx: &<b>mut</b> TxContext
) {
<b>assert</b>!(<a href="kiosk.md#0x2_kiosk_has_access">kiosk::has_access</a>(self, cap), <a href="kiosk_extension.md#0x2_kiosk_extension_ENotOwner">ENotOwner</a>);
<b>assert</b>!(self.has_access(cap), <a href="kiosk_extension.md#0x2_kiosk_extension_ENotOwner">ENotOwner</a>);
df::add(
<a href="kiosk.md#0x2_kiosk_uid_mut_as_owner">kiosk::uid_mut_as_owner</a>(self, cap),
self.uid_mut_as_owner(cap),
<a href="kiosk_extension.md#0x2_kiosk_extension_ExtensionKey">ExtensionKey</a>&lt;Ext&gt; {},
<a href="kiosk_extension.md#0x2_kiosk_extension_Extension">Extension</a> {
storage: <a href="bag.md#0x2_bag_new">bag::new</a>(ctx),
Expand Down Expand Up @@ -297,7 +297,7 @@ The storage is still available to the extension (until it's removed).
self: &<b>mut</b> Kiosk,
cap: &KioskOwnerCap,
) {
<b>assert</b>!(<a href="kiosk.md#0x2_kiosk_has_access">kiosk::has_access</a>(self, cap), <a href="kiosk_extension.md#0x2_kiosk_extension_ENotOwner">ENotOwner</a>);
<b>assert</b>!(self.has_access(cap), <a href="kiosk_extension.md#0x2_kiosk_extension_ENotOwner">ENotOwner</a>);
<b>assert</b>!(<a href="kiosk_extension.md#0x2_kiosk_extension_is_installed">is_installed</a>&lt;Ext&gt;(self), <a href="kiosk_extension.md#0x2_kiosk_extension_EExtensionNotInstalled">EExtensionNotInstalled</a>);
<a href="kiosk_extension.md#0x2_kiosk_extension_extension_mut">extension_mut</a>&lt;Ext&gt;(self).is_enabled = <b>false</b>;
}
Expand Down Expand Up @@ -329,7 +329,7 @@ owner can disable them via <code>disable</code> call.
self: &<b>mut</b> Kiosk,
cap: &KioskOwnerCap,
) {
<b>assert</b>!(<a href="kiosk.md#0x2_kiosk_has_access">kiosk::has_access</a>(self, cap), <a href="kiosk_extension.md#0x2_kiosk_extension_ENotOwner">ENotOwner</a>);
<b>assert</b>!(self.has_access(cap), <a href="kiosk_extension.md#0x2_kiosk_extension_ENotOwner">ENotOwner</a>);
<b>assert</b>!(<a href="kiosk_extension.md#0x2_kiosk_extension_is_installed">is_installed</a>&lt;Ext&gt;(self), <a href="kiosk_extension.md#0x2_kiosk_extension_EExtensionNotInstalled">EExtensionNotInstalled</a>);
<a href="kiosk_extension.md#0x2_kiosk_extension_extension_mut">extension_mut</a>&lt;Ext&gt;(self).is_enabled = <b>true</b>;
}
Expand Down Expand Up @@ -359,16 +359,16 @@ the extension storage must be empty for the transaction to succeed.
<pre><code><b>public</b> <b>fun</b> <a href="kiosk_extension.md#0x2_kiosk_extension_remove">remove</a>&lt;Ext: drop&gt;(
self: &<b>mut</b> Kiosk, cap: &KioskOwnerCap
) {
<b>assert</b>!(<a href="kiosk.md#0x2_kiosk_has_access">kiosk::has_access</a>(self, cap), <a href="kiosk_extension.md#0x2_kiosk_extension_ENotOwner">ENotOwner</a>);
<b>assert</b>!(self.has_access(cap), <a href="kiosk_extension.md#0x2_kiosk_extension_ENotOwner">ENotOwner</a>);
<b>assert</b>!(<a href="kiosk_extension.md#0x2_kiosk_extension_is_installed">is_installed</a>&lt;Ext&gt;(self), <a href="kiosk_extension.md#0x2_kiosk_extension_EExtensionNotInstalled">EExtensionNotInstalled</a>);

<b>let</b> <a href="kiosk_extension.md#0x2_kiosk_extension_Extension">Extension</a> {
storage,
permissions: _,
is_enabled: _,
} = df::remove(<a href="kiosk.md#0x2_kiosk_uid_mut_as_owner">kiosk::uid_mut_as_owner</a>(self, cap), <a href="kiosk_extension.md#0x2_kiosk_extension_ExtensionKey">ExtensionKey</a>&lt;Ext&gt; {});
} = df::remove(self.uid_mut_as_owner(cap), <a href="kiosk_extension.md#0x2_kiosk_extension_ExtensionKey">ExtensionKey</a>&lt;Ext&gt; {});

<a href="bag.md#0x2_bag_destroy_empty">bag::destroy_empty</a>(storage);
storage.destroy_empty();
}
</code></pre>

Expand Down Expand Up @@ -471,7 +471,7 @@ requires a <code>TransferPolicy</code> for the placed type to exist.
<b>assert</b>!(<a href="kiosk_extension.md#0x2_kiosk_extension_is_installed">is_installed</a>&lt;Ext&gt;(self), <a href="kiosk_extension.md#0x2_kiosk_extension_EExtensionNotInstalled">EExtensionNotInstalled</a>);
<b>assert</b>!(<a href="kiosk_extension.md#0x2_kiosk_extension_can_place">can_place</a>&lt;Ext&gt;(self) || <a href="kiosk_extension.md#0x2_kiosk_extension_can_lock">can_lock</a>&lt;Ext&gt;(self), <a href="kiosk_extension.md#0x2_kiosk_extension_EExtensionNotAllowed">EExtensionNotAllowed</a>);

<a href="kiosk.md#0x2_kiosk_place_internal">kiosk::place_internal</a>(self, item)
self.place_internal(item)
}
</code></pre>

Expand Down Expand Up @@ -502,7 +502,7 @@ authorized extension. The extension must have the <code>lock</code> permission.
<b>assert</b>!(<a href="kiosk_extension.md#0x2_kiosk_extension_is_installed">is_installed</a>&lt;Ext&gt;(self), <a href="kiosk_extension.md#0x2_kiosk_extension_EExtensionNotInstalled">EExtensionNotInstalled</a>);
<b>assert</b>!(<a href="kiosk_extension.md#0x2_kiosk_extension_can_lock">can_lock</a>&lt;Ext&gt;(self), <a href="kiosk_extension.md#0x2_kiosk_extension_EExtensionNotAllowed">EExtensionNotAllowed</a>);

<a href="kiosk.md#0x2_kiosk_lock_internal">kiosk::lock_internal</a>(self, item)
self.lock_internal(item)
}
</code></pre>

Expand All @@ -527,7 +527,7 @@ Check whether an extension of type <code>Ext</code> is installed.


<pre><code><b>public</b> <b>fun</b> <a href="kiosk_extension.md#0x2_kiosk_extension_is_installed">is_installed</a>&lt;Ext: drop&gt;(self: &Kiosk): bool {
df::exists_(<a href="kiosk.md#0x2_kiosk_uid">kiosk::uid</a>(self), <a href="kiosk_extension.md#0x2_kiosk_extension_ExtensionKey">ExtensionKey</a>&lt;Ext&gt; {})
df::exists_(self.uid(), <a href="kiosk_extension.md#0x2_kiosk_extension_ExtensionKey">ExtensionKey</a>&lt;Ext&gt; {})
}
</code></pre>

Expand Down Expand Up @@ -628,7 +628,7 @@ Internal: get a read-only access to the Extension.


<pre><code><b>fun</b> <a href="kiosk_extension.md#0x2_kiosk_extension_extension">extension</a>&lt;Ext: drop&gt;(self: &Kiosk): &<a href="kiosk_extension.md#0x2_kiosk_extension_Extension">Extension</a> {
df::borrow(<a href="kiosk.md#0x2_kiosk_uid">kiosk::uid</a>(self), <a href="kiosk_extension.md#0x2_kiosk_extension_ExtensionKey">ExtensionKey</a>&lt;Ext&gt; {})
df::borrow(self.uid(), <a href="kiosk_extension.md#0x2_kiosk_extension_ExtensionKey">ExtensionKey</a>&lt;Ext&gt; {})
}
</code></pre>

Expand All @@ -653,7 +653,7 @@ Internal: get a mutable access to the Extension.


<pre><code><b>fun</b> <a href="kiosk_extension.md#0x2_kiosk_extension_extension_mut">extension_mut</a>&lt;Ext: drop&gt;(self: &<b>mut</b> Kiosk): &<b>mut</b> <a href="kiosk_extension.md#0x2_kiosk_extension_Extension">Extension</a> {
df::borrow_mut(<a href="kiosk.md#0x2_kiosk_uid_mut_internal">kiosk::uid_mut_internal</a>(self), <a href="kiosk_extension.md#0x2_kiosk_extension_ExtensionKey">ExtensionKey</a>&lt;Ext&gt; {})
df::borrow_mut(self.uid_mut_internal(), <a href="kiosk_extension.md#0x2_kiosk_extension_ExtensionKey">ExtensionKey</a>&lt;Ext&gt; {})
}
</code></pre>

Expand Down
8 changes: 4 additions & 4 deletions crates/sui-framework/docs/sui-framework/poseidon.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,16 +73,16 @@ scalar field size which is 21888242871839275222246405745257275088548364400416034


<pre><code><b>public</b> <b>fun</b> <a href="poseidon.md#0x2_poseidon_poseidon_bn254">poseidon_bn254</a>(data: &<a href="../move-stdlib/vector.md#0x1_vector">vector</a>&lt;u256&gt;): u256 {
<b>let</b> (<b>mut</b> i, <b>mut</b> b, l) = (0, <a href="../move-stdlib/vector.md#0x1_vector">vector</a>[], <a href="../move-stdlib/vector.md#0x1_vector_length">vector::length</a>(data));
<b>let</b> (<b>mut</b> i, <b>mut</b> b, l) = (0, <a href="../move-stdlib/vector.md#0x1_vector">vector</a>[], data.length());
<b>assert</b>!(l &gt; 0, <a href="poseidon.md#0x2_poseidon_EEmptyInput">EEmptyInput</a>);
<b>while</b> (i &lt; l) {
<b>let</b> field_element = <a href="../move-stdlib/vector.md#0x1_vector_borrow">vector::borrow</a>(data, i);
<b>let</b> field_element = &data[i];
<b>assert</b>!(*field_element &lt; <a href="poseidon.md#0x2_poseidon_BN254_MAX">BN254_MAX</a>, <a href="poseidon.md#0x2_poseidon_ENonCanonicalInput">ENonCanonicalInput</a>);
<a href="../move-stdlib/vector.md#0x1_vector_push_back">vector::push_back</a>(&<b>mut</b> b, <a href="../move-stdlib/bcs.md#0x1_bcs_to_bytes">bcs::to_bytes</a>(<a href="../move-stdlib/vector.md#0x1_vector_borrow">vector::borrow</a>(data, i)));
b.push_back(<a href="../move-stdlib/bcs.md#0x1_bcs_to_bytes">bcs::to_bytes</a>(&data[i]));
i = i + 1;
};
<b>let</b> binary_output = <a href="poseidon.md#0x2_poseidon_poseidon_bn254_internal">poseidon_bn254_internal</a>(&b);
bcs::peel_u256(&<b>mut</b> bcs::new(binary_output))
bcs::new(binary_output).peel_u256()
}
</code></pre>

Expand Down
26 changes: 13 additions & 13 deletions crates/sui-framework/docs/sui-framework/transfer_policy.md
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@ sender.
<pre><code>entry <b>fun</b> <a href="transfer_policy.md#0x2_transfer_policy_default">default</a>&lt;T&gt;(pub: &Publisher, ctx: &<b>mut</b> TxContext) {
<b>let</b> (policy, cap) = <a href="transfer_policy.md#0x2_transfer_policy_new">new</a>&lt;T&gt;(pub, ctx);
sui::transfer::share_object(policy);
sui::transfer::transfer(cap, sender(ctx));
sui::transfer::transfer(cap, ctx.sender());
}
</code></pre>

Expand Down Expand Up @@ -479,12 +479,12 @@ is not specified, all profits are withdrawn.
): Coin&lt;SUI&gt; {
<b>assert</b>!(<a href="object.md#0x2_object_id">object::id</a>(self) == cap.policy_id, <a href="transfer_policy.md#0x2_transfer_policy_ENotOwner">ENotOwner</a>);

<b>let</b> amount = <b>if</b> (<a href="../move-stdlib/option.md#0x1_option_is_some">option::is_some</a>(&amount)) {
<b>let</b> amt = <a href="../move-stdlib/option.md#0x1_option_destroy_some">option::destroy_some</a>(amount);
<b>assert</b>!(amt &lt;= <a href="balance.md#0x2_balance_value">balance::value</a>(&self.<a href="balance.md#0x2_balance">balance</a>), <a href="transfer_policy.md#0x2_transfer_policy_ENotEnough">ENotEnough</a>);
<b>let</b> amount = <b>if</b> (amount.is_some()) {
<b>let</b> amt = amount.destroy_some();
<b>assert</b>!(amt &lt;= self.<a href="balance.md#0x2_balance">balance</a>.value(), <a href="transfer_policy.md#0x2_transfer_policy_ENotEnough">ENotEnough</a>);
amt
} <b>else</b> {
<a href="balance.md#0x2_balance_value">balance::value</a>(&self.<a href="balance.md#0x2_balance">balance</a>)
self.<a href="balance.md#0x2_balance">balance</a>.value()
};

<a href="coin.md#0x2_coin_take">coin::take</a>(&<b>mut</b> self.<a href="balance.md#0x2_balance">balance</a>, amount, ctx)
Expand Down Expand Up @@ -556,14 +556,14 @@ Kiosk trades will not be possible.
self: &<a href="transfer_policy.md#0x2_transfer_policy_TransferPolicy">TransferPolicy</a>&lt;T&gt;, request: <a href="transfer_policy.md#0x2_transfer_policy_TransferRequest">TransferRequest</a>&lt;T&gt;
): (ID, u64, ID) {
<b>let</b> <a href="transfer_policy.md#0x2_transfer_policy_TransferRequest">TransferRequest</a> { item, paid, from, receipts } = request;
<b>let</b> <b>mut</b> completed = <a href="vec_set.md#0x2_vec_set_into_keys">vec_set::into_keys</a>(receipts);
<b>let</b> <b>mut</b> total = <a href="../move-stdlib/vector.md#0x1_vector_length">vector::length</a>(&completed);
<b>let</b> <b>mut</b> completed = receipts.into_keys();
<b>let</b> <b>mut</b> total = completed.length();

<b>assert</b>!(total == <a href="vec_set.md#0x2_vec_set_size">vec_set::size</a>(&self.rules), <a href="transfer_policy.md#0x2_transfer_policy_EPolicyNotSatisfied">EPolicyNotSatisfied</a>);
<b>assert</b>!(total == self.rules.size(), <a href="transfer_policy.md#0x2_transfer_policy_EPolicyNotSatisfied">EPolicyNotSatisfied</a>);

<b>while</b> (total &gt; 0) {
<b>let</b> rule_type = <a href="../move-stdlib/vector.md#0x1_vector_pop_back">vector::pop_back</a>(&<b>mut</b> completed);
<b>assert</b>!(<a href="vec_set.md#0x2_vec_set_contains">vec_set::contains</a>(&self.rules, &rule_type), <a href="transfer_policy.md#0x2_transfer_policy_EIllegalRule">EIllegalRule</a>);
<b>let</b> rule_type = completed.pop_back();
<b>assert</b>!(self.rules.contains(&rule_type), <a href="transfer_policy.md#0x2_transfer_policy_EIllegalRule">EIllegalRule</a>);
total = total - 1;
};

Expand Down Expand Up @@ -605,7 +605,7 @@ even if graceful unpacking has not been implemented in a "rule module".
<b>assert</b>!(<a href="object.md#0x2_object_id">object::id</a>(policy) == cap.policy_id, <a href="transfer_policy.md#0x2_transfer_policy_ENotOwner">ENotOwner</a>);
<b>assert</b>!(!<a href="transfer_policy.md#0x2_transfer_policy_has_rule">has_rule</a>&lt;T, Rule&gt;(policy), <a href="transfer_policy.md#0x2_transfer_policy_ERuleAlreadySet">ERuleAlreadySet</a>);
df::add(&<b>mut</b> policy.id, <a href="transfer_policy.md#0x2_transfer_policy_RuleKey">RuleKey</a>&lt;Rule&gt; {}, cfg);
<a href="vec_set.md#0x2_vec_set_insert">vec_set::insert</a>(&<b>mut</b> policy.rules, <a href="../move-stdlib/type_name.md#0x1_type_name_get">type_name::get</a>&lt;Rule&gt;())
policy.rules.insert(<a href="../move-stdlib/type_name.md#0x1_type_name_get">type_name::get</a>&lt;Rule&gt;())
}
</code></pre>

Expand Down Expand Up @@ -688,7 +688,7 @@ confirming that the policy requirements are satisfied.
<pre><code><b>public</b> <b>fun</b> <a href="transfer_policy.md#0x2_transfer_policy_add_receipt">add_receipt</a>&lt;T, Rule: drop&gt;(
_: Rule, request: &<b>mut</b> <a href="transfer_policy.md#0x2_transfer_policy_TransferRequest">TransferRequest</a>&lt;T&gt;
) {
<a href="vec_set.md#0x2_vec_set_insert">vec_set::insert</a>(&<b>mut</b> request.receipts, <a href="../move-stdlib/type_name.md#0x1_type_name_get">type_name::get</a>&lt;Rule&gt;())
request.receipts.insert(<a href="../move-stdlib/type_name.md#0x1_type_name_get">type_name::get</a>&lt;Rule&gt;())
}
</code></pre>

Expand Down Expand Up @@ -742,7 +742,7 @@ Remove the Rule from the <code><a href="transfer_policy.md#0x2_transfer_policy_T
) {
<b>assert</b>!(<a href="object.md#0x2_object_id">object::id</a>(policy) == cap.policy_id, <a href="transfer_policy.md#0x2_transfer_policy_ENotOwner">ENotOwner</a>);
<b>let</b> _: Config = df::remove(&<b>mut</b> policy.id, <a href="transfer_policy.md#0x2_transfer_policy_RuleKey">RuleKey</a>&lt;Rule&gt; {});
<a href="vec_set.md#0x2_vec_set_remove">vec_set::remove</a>(&<b>mut</b> policy.rules, &<a href="../move-stdlib/type_name.md#0x1_type_name_get">type_name::get</a>&lt;Rule&gt;());
policy.rules.remove(&<a href="../move-stdlib/type_name.md#0x1_type_name_get">type_name::get</a>&lt;Rule&gt;());
}
</code></pre>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ Aborts with <code><a href="zklogin_verified_issuer.md#0x2_zklogin_verified_issue
issuer: String,
ctx: &<b>mut</b> TxContext,
) {
<b>let</b> sender = <a href="tx_context.md#0x2_tx_context_sender">tx_context::sender</a>(ctx);
<b>let</b> sender = ctx.sender();
<b>assert</b>!(<a href="zklogin_verified_issuer.md#0x2_zklogin_verified_issuer_check_zklogin_issuer">check_zklogin_issuer</a>(sender, address_seed, &issuer), <a href="zklogin_verified_issuer.md#0x2_zklogin_verified_issuer_EInvalidProof">EInvalidProof</a>);
<a href="transfer.md#0x2_transfer_transfer">transfer::transfer</a>(
<a href="zklogin_verified_issuer.md#0x2_zklogin_verified_issuer_VerifiedIssuer">VerifiedIssuer</a> {
Expand Down
Loading

0 comments on commit 04b03e8

Please sign in to comment.