Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] Remove BCS::to_bytes need store ability #179

Merged
merged 1 commit into from
Oct 12, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified build/StarcoinFramework/bytecode_modules/Account.mv
Binary file not shown.
Binary file modified build/StarcoinFramework/bytecode_modules/Authenticator.mv
Binary file not shown.
Binary file modified build/StarcoinFramework/bytecode_modules/BCS.mv
Binary file not shown.
Binary file modified build/StarcoinFramework/bytecode_modules/Event.mv
Binary file not shown.
Binary file modified build/StarcoinFramework/bytecode_modules/MerkleNFTDistributor.mv
Binary file not shown.
Binary file modified build/StarcoinFramework/bytecode_modules/StarcoinVerifier.mv
Binary file not shown.
Binary file modified build/StarcoinFramework/bytecode_modules/StructuredHash.mv
Binary file not shown.
4 changes: 2 additions & 2 deletions build/StarcoinFramework/docs/BCS.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ published on-chain.
Return the binary representation of <code>v</code> in BCS (Starcoin Canonical Serialization) format


<pre><code><b>public</b> <b>fun</b> <a href="BCS.md#0x1_BCS_to_bytes">to_bytes</a>&lt;MoveValue: store&gt;(v: &MoveValue): vector&lt;u8&gt;
<pre><code><b>public</b> <b>fun</b> <a href="BCS.md#0x1_BCS_to_bytes">to_bytes</a>&lt;MoveValue&gt;(v: &MoveValue): vector&lt;u8&gt;
</code></pre>


Expand All @@ -125,7 +125,7 @@ Return the binary representation of <code>v</code> in BCS (Starcoin Canonical Se
<summary>Implementation</summary>


<pre><code><b>native</b> <b>public</b> <b>fun</b> <a href="BCS.md#0x1_BCS_to_bytes">to_bytes</a>&lt;MoveValue: store&gt;(v: &MoveValue): vector&lt;u8&gt;;
<pre><code><b>native</b> <b>public</b> <b>fun</b> <a href="BCS.md#0x1_BCS_to_bytes">to_bytes</a>&lt;MoveValue&gt;(v: &MoveValue): vector&lt;u8&gt;;
</code></pre>


Expand Down
Binary file modified build/StarcoinFramework/source_maps/BCS.mvsm
Binary file not shown.
2 changes: 1 addition & 1 deletion sources/BCS.move
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ module BCS {
pragma aborts_if_is_strict;
}
/// Return the binary representation of `v` in BCS (Starcoin Canonical Serialization) format
native public fun to_bytes<MoveValue: store>(v: &MoveValue): vector<u8>;
native public fun to_bytes<MoveValue>(v: &MoveValue): vector<u8>;

/// Return the address of key bytes
native public fun to_address(key_bytes: vector<u8>): address;
Expand Down