Skip to content

Commit

Permalink
Revert "fix to_bytes need store (#179)"
Browse files Browse the repository at this point in the history
This reverts commit 31792d4.
  • Loading branch information
nkysg committed Mar 2, 2023
1 parent abd73cd commit b0d00cf
Show file tree
Hide file tree
Showing 10 changed files with 3 additions and 3 deletions.
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&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: store&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&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: store&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>(v: &MoveValue): vector<u8>;
native public fun to_bytes<MoveValue: store>(v: &MoveValue): vector<u8>;

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

0 comments on commit b0d00cf

Please sign in to comment.