Compare commits
8 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 27bb4331aa | |||
| 9b36c771c7 | |||
| 58e34ae7b5 | |||
| 87baccba42 | |||
| 5e820bed55 | |||
| 80ff8a49f4 | |||
| 47aaa8f543 | |||
| e1fe683f95 |
+1
-1
@@ -1,4 +1,4 @@
|
||||
{erl_opts, [debug_info]}.
|
||||
{deps, [ {base58, {git, "https://github.com/aeternity/erl-base58.git", {ref, "60a3356"}}}
|
||||
, {enacl, {git, "https://github.com/aeternity/enacl.git", {ref, "26180f4"}}}
|
||||
, {enacl, {git, "https://github.com/aeternity/enacl.git", {ref, "793ddb5"}}}
|
||||
]}.
|
||||
|
||||
@@ -52,11 +52,13 @@ tag(name_preclaim_tx) -> 33;
|
||||
tag(name_update_tx) -> 34;
|
||||
tag(name_revoke_tx) -> 35;
|
||||
tag(name_transfer_tx) -> 36;
|
||||
tag(name_auction) -> 37;
|
||||
tag(contract) -> 40;
|
||||
tag(contract_call) -> 41;
|
||||
tag(contract_create_tx) -> 42;
|
||||
tag(contract_call_tx) -> 43;
|
||||
tag(channel_create_tx) -> 50;
|
||||
tag(channel_set_delegates_tx) -> 501;
|
||||
tag(channel_deposit_tx) -> 51;
|
||||
tag(channel_withdraw_tx) -> 52;
|
||||
tag(channel_force_progress_tx) -> 521;
|
||||
@@ -88,6 +90,7 @@ tag(accounts_mtree) -> 626;
|
||||
tag(compiler_sophia) -> 70;
|
||||
tag(ga_attach_tx) -> 80;
|
||||
tag(ga_meta_tx) -> 81;
|
||||
tag(paying_for_tx) -> 82;
|
||||
tag(key_block) -> 100;
|
||||
tag(micro_block) -> 101;
|
||||
tag(light_micro_block) -> 102;
|
||||
@@ -109,11 +112,13 @@ rev_tag(33) -> name_preclaim_tx;
|
||||
rev_tag(34) -> name_update_tx;
|
||||
rev_tag(35) -> name_revoke_tx;
|
||||
rev_tag(36) -> name_transfer_tx;
|
||||
rev_tag(37) -> name_auction;
|
||||
rev_tag(40) -> contract;
|
||||
rev_tag(41) -> contract_call;
|
||||
rev_tag(42) -> contract_create_tx;
|
||||
rev_tag(43) -> contract_call_tx;
|
||||
rev_tag(50) -> channel_create_tx;
|
||||
rev_tag(501) -> channel_set_delegates_tx;
|
||||
rev_tag(51) -> channel_deposit_tx;
|
||||
rev_tag(52) -> channel_withdraw_tx;
|
||||
rev_tag(521) -> channel_force_progress_tx;
|
||||
@@ -145,6 +150,7 @@ rev_tag(626) -> accounts_mtree;
|
||||
rev_tag(70) -> compiler_sophia;
|
||||
rev_tag(80) -> ga_attach_tx;
|
||||
rev_tag(81) -> ga_meta_tx;
|
||||
rev_tag(82) -> paying_for_tx;
|
||||
rev_tag(100) -> key_block;
|
||||
rev_tag(101) -> micro_block;
|
||||
rev_tag(102) -> light_micro_block;
|
||||
|
||||
@@ -23,8 +23,7 @@ serialize(CodeMap = #{ byte_code := ByteCode
|
||||
SourceHash = case CodeMap of
|
||||
#{ source_hash := SHash } -> SHash;
|
||||
#{ contract_source := SrcStr } ->
|
||||
{ok, SHash} = enacl:generichash(32, list_to_binary(SrcStr)),
|
||||
SHash
|
||||
enacl:generichash(32, list_to_binary(SrcStr))
|
||||
end,
|
||||
|
||||
%% Compiler version
|
||||
|
||||
Reference in New Issue
Block a user