Skip to content

Commit

Permalink
allow signing for FILECOIN CALIBRATION TESTNET
Browse files Browse the repository at this point in the history
  • Loading branch information
ftheirs committed Dec 19, 2023
1 parent d5de73c commit 26d8a15
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/src/parser_impl_eth.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@

eth_tx_t eth_tx_obj;
#define FILECOIN_MAINNET_CHAINID 314
#define FILECOIN_CALIBRATION_CHAINID 314159

static parser_error_t parse_field(parser_context_t *ctx, uint32_t *fieldOffset,
uint32_t *len) {
Expand Down Expand Up @@ -56,7 +57,7 @@ static parser_error_t readChainID(parser_context_t *ctx, chain_id_t *chain_id) {
const uint8_t *chain = ctx->buffer + chain_id->offset;
uint64_t id = 0;
if (be_bytes_to_u64(chain, chain_id->len, &id) != 0 ||
id != FILECOIN_MAINNET_CHAINID) {
(id != FILECOIN_MAINNET_CHAINID && id != FILECOIN_CALIBRATION_CHAINID)) {
return parser_invalid_chain_id;
}

Expand Down

0 comments on commit 26d8a15

Please sign in to comment.