Skip to content

Commit

Permalink
update lib.rs / transaction.rs (#3290)
Browse files Browse the repository at this point in the history
exchange of token - fix - exchange for token `2x`
An message - fix - A message

---------

Signed-off-by: XxAlex74xX <30472093+XxAlex74xX@users.noreply.github.com>
  • Loading branch information
XxAlex74xX authored Feb 12, 2025
1 parent fbe0732 commit 9c4f5b9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions examples/matching-engine/tests/transaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,11 @@ pub async fn get_orders(
/// * user_a with 10 tokens A.
/// * user_b with 9 tokens B.
/// * Then we create the following orders:
/// * User_a: Offer to buy token B in exchange of token A for a price of 1 (or 2) with
/// * User_a: Offer to buy token B in exchange for token A for a price of 1 (or 2) with
/// a quantity of 3 token B.
/// User_a thus commits 3 * 1 + 3 * 2 = 9 token A to the matching engine chain and is
/// left with 1 token A on chain A
/// * User_b: Offer to sell token B in exchange of token A for a price of 2 (or 4) with
/// * User_b: Offer to sell token B in exchange for token A for a price of 2 (or 4) with
/// a quantity of 4 token B
/// User_b thus commits 4 + 4 = 8 token B on the matching engine chain and is left
/// with 1 token B.
Expand Down
2 changes: 1 addition & 1 deletion linera-execution/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1400,6 +1400,6 @@ pub struct InvalidWasmRuntime(String);
doc_scalar!(Operation, "An operation to be executed in a block");
doc_scalar!(
Message,
"An message to be sent and possibly executed in the receiver's block."
"A message to be sent and possibly executed in the receiver's block."
);
doc_scalar!(MessageKind, "The kind of outgoing message being sent");
2 changes: 1 addition & 1 deletion linera-service-graphql-client/gql/service_schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -675,7 +675,7 @@ type MapView_BlobId_Blob_9f0b41f3 {
}

"""
An message to be sent and possibly executed in the receiver's block.
A message to be sent and possibly executed in the receiver's block.
"""
scalar Message

Expand Down

0 comments on commit 9c4f5b9

Please sign in to comment.