Skip to content

Commit

Permalink
tmp
Browse files Browse the repository at this point in the history
  • Loading branch information
virgil-serbanuta committed Oct 10, 2024
1 parent 63f51d1 commit 007853a
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tests/ukm-with-contract/endpoints.1.run
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ return_value;
check_eq ();

push_status;
check_eq 0;
check_eq 2;

push_output;
output_to_arg;
call :: endpoints :: decode_single_u64;
return_value;

Expand Down
1 change: 1 addition & 0 deletions ukm-semantics/main/hooks/state.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ module UKM-HOOKS-STATE
syntax Identifier ::= "state_hooks" [token]
| "setStatus" [token]
| "setGasLeft" [token]
| "setOutput" [token]
rule normalizedFunctionCall
( :: state_hooks :: setStatus :: .PathExprSegments
Expand Down
1 change: 1 addition & 0 deletions ukm-semantics/main/representation.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ module UKM-REPRESENTATION
imports private BYTES-SYNTAX
imports private INT-SYNTAX
imports private MINT
imports private RUST-VALUE-SYNTAX
syntax UkmValue ::= ukmBytesValue(Bytes)
| ukmIntValue(Int)
Expand Down
4 changes: 2 additions & 2 deletions ukm-semantics/test/execution.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module UKM-TEST-SYNTAX
syntax ExecutionItem ::= "mock" "CallData"
| "call_contract" Int
| "push_output"
| "output_to_arg"
| "push_status"
| "check_eq" Int
endmodule
Expand All @@ -32,7 +32,7 @@ module UKM-TEST-EXECUTION
rule
<k>
push_output => ukmBytesNew(Output) ~> return_value
output_to_arg => ukmBytesNew(Output) ~> return_value_to_arg
...
</k>
<ukm-output>
Expand Down

0 comments on commit 007853a

Please sign in to comment.