Skip to content

Commit

Permalink
Add support for coston testnet
Browse files Browse the repository at this point in the history
  • Loading branch information
0xPxt committed Oct 29, 2024
1 parent ed01330 commit c28191f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion app/src/parser_impl_eth.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@

eth_tx_t eth_tx_obj;
#define FLARE_MAINNET_CHAINID 14
#define COSTON_CHAINID 16
#define SONG_BIRD_CHAINID 19
#define COSTON2_CHAINID 114
#define DATA_BYTES_TO_PRINT 10
Expand All @@ -52,7 +53,7 @@ static parser_error_t readChainID(parser_context_t *ctx, rlp_t *chainId) {
}

// Check allowed values for chain id
if (tmpChainId != FLARE_MAINNET_CHAINID && tmpChainId != SONG_BIRD_CHAINID && tmpChainId != COSTON2_CHAINID) {
if (tmpChainId != FLARE_MAINNET_CHAINID && tmpChainId != COSTON_CHAINID && tmpChainId != SONG_BIRD_CHAINID && tmpChainId != COSTON2_CHAINID) {
return parser_invalid_chain_id;
}

Expand Down
2 changes: 1 addition & 1 deletion app/src/parser_print_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ parser_error_t printAddress(const uint8_t *pubkey, network_id_e network_id, char
hrp = "song";
break;
case coston:
hrp = "costwo";
hrp = "coston";
break;
case coston2:
hrp = "costwo";
Expand Down

1 comment on commit c28191f

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cpp-Linter Report ⚠️

Some files did not pass the configured checks!

clang-format (v12.0.1) reports: 1 file(s) not formatted
  • app/src/parser_impl_eth.c

Have any feedback or feature suggestions? Share it here.

Please sign in to comment.