Skip to content

Commit

Permalink
refactor: add placeholders on the interface, when creating an offer. (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
overcat authored Jul 23, 2024
1 parent 5e1a72c commit 34fe77d
Show file tree
Hide file tree
Showing 16 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions libstellar/formatter.c
Original file line number Diff line number Diff line change
Expand Up @@ -911,6 +911,7 @@ static bool format_manage_sell_offer(formatter_data_t *fdata) {
fdata->value_len))
} else {
STRLCPY(fdata->caption, "Create Offer", fdata->caption_len);
STRLCPY(fdata->value, "New Offer", fdata->value_len);
}
FORMATTER_CHECK(push_to_formatter_stack(&format_manage_sell_offer_buy))
}
Expand Down Expand Up @@ -965,6 +966,7 @@ static bool format_manage_buy_offer(formatter_data_t *fdata) {
FORMATTER_CHECK(print_uint64_num(op->offer_id, fdata->value, fdata->value_len))
} else {
STRLCPY(fdata->caption, "Create Offer", fdata->caption_len);
STRLCPY(fdata->value, "New Offer", fdata->value_len);
}
FORMATTER_CHECK(push_to_formatter_stack(&format_manage_buy_offer_sell))
}
Expand Down
1 change: 1 addition & 0 deletions tests_generate_binary/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion tests_unit/testcases/opManageBuyOfferCreate.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Max Fee; 0.00001 XLM
Sequence Num; 103720918407102568
Valid Before (UTC); 2022-12-12 04:12:12
Tx Source; GDUTHC..XM2FN7
Create Offer;
Create Offer; New Offer
Sell; BTC@GAT..MTCH
Buy; 988,448,111.2222 XLM
Price; 0.0001011 BTC/XLM
Expand Down
2 changes: 1 addition & 1 deletion tests_unit/testcases/opManageSellOfferCreate.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Max Fee; 0.00001 XLM
Sequence Num; 103720918407102568
Valid Before (UTC); 2022-12-12 04:12:12
Tx Source; GDUTHC..XM2FN7
Create Offer;
Create Offer; New Offer
Buy; XLM
Sell; 988,448,423.2134 BTC@GAT..MTCH
Price; 0.0001234 XLM/BTC
Expand Down
Binary file modified tests_zemu/snapshots/flex-op-manage-buy-offer-create/00002.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/flex-op-manage-sell-offer-create/00002.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/s-op-manage-buy-offer-create/00006.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/s-op-manage-sell-offer-create/00006.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/sp-op-manage-buy-offer-create/00006.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/sp-op-manage-sell-offer-create/00006.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/stax-op-manage-buy-offer-create/00002.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/stax-op-manage-buy-offer-create/00003.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/stax-op-manage-sell-offer-create/00002.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/stax-op-manage-sell-offer-create/00003.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/x-op-manage-buy-offer-create/00006.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/x-op-manage-sell-offer-create/00006.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 34fe77d

Please sign in to comment.