Skip to content

Commit

Permalink
chore: update for Hupayx
Browse files Browse the repository at this point in the history
  • Loading branch information
hwnahm committed Jul 12, 2021
1 parent 1943085 commit 0f24669
Show file tree
Hide file tree
Showing 6 changed files with 143 additions and 143 deletions.
2 changes: 1 addition & 1 deletion app/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ MY_DIR := $(dir $(lastword $(MAKEFILE_LIST)))
include $(BOLOS_SDK)/Makefile.defines

# Main app configuration
APPNAME = "Cosmos"
APPNAME = "Hupayx"
APPVERSION_M=2
APPVERSION_N=18
APPVERSION_P=0
Expand Down
8 changes: 4 additions & 4 deletions app/src/coin.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,17 +41,17 @@ typedef enum {
#define VIEW_ADDRESS_OFFSET_SECP256K1 PK_LEN_SECP256K1
#define VIEW_ADDRESS_LAST_PAGE_DEFAULT 0

#define MENU_MAIN_APP_LINE1 "Cosmos"
#define MENU_MAIN_APP_LINE1 "Hupayx"
#define MENU_MAIN_APP_LINE2 "ready"
#define APPVERSION_LINE1 "Version:"
#define APPVERSION_LINE2 ("v" APPVERSION)

#define CRYPTO_BLOB_SKIP_BYTES 0
#define COIN_DEFAULT_CHAINID "cosmoshub-4"
#define COIN_DEFAULT_CHAINID "hupayx-hub"

// In non-expert mode, the app will convert from uatom to ATOM
#define COIN_DEFAULT_DENOM_BASE "uatom"
#define COIN_DEFAULT_DENOM_REPR "ATOM"
#define COIN_DEFAULT_DENOM_BASE "uhpx"
#define COIN_DEFAULT_DENOM_REPR "HPX"
#define COIN_DEFAULT_DENOM_FACTOR 6

#ifdef __cplusplus
Expand Down
2 changes: 1 addition & 1 deletion tests/json_parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ namespace {

TEST(TxValidationTest, ObjectGetValueCorrectFormat) {
auto transaction =
R"({"account_number":"0","chain_id":"test-chain-1","fee":{"amount":[{"amount":"5","denom":"photon"}],"gas":"10000"},"memo":"testmemo","msgs":[{"inputs":[{"address":"cosmosaccaddr1d9h8qat5e4ehc5","coins":[{"amount":"10","denom":"atom"}]}],"outputs":[{"address":"cosmosaccaddr1da6hgur4wse3jx32","coins":[{"amount":"10","denom":"atom"}]}]}],"sequence":"1"})";
R"({"account_number":"0","chain_id":"test-chain-1","fee":{"amount":[{"amount":"5","denom":"photon"}],"gas":"10000"},"memo":"testmemo","msgs":[{"inputs":[{"address":"cosmosaccaddr1d9h8qat5e4ehc5","coins":[{"amount":"10","denom":"hpx"}]}],"outputs":[{"address":"cosmosaccaddr1da6hgur4wse3jx32","coins":[{"amount":"10","denom":"hpx"}]}]}],"sequence":"1"})";
parsed_json_t parsed_json;
JSON_PARSE(&parsed_json, transaction);

Expand Down
Loading

0 comments on commit 0f24669

Please sign in to comment.