Update NETWORK_STRING_MAX_SIZE
This commit is contained in:
@@ -162,14 +162,14 @@ typedef enum {
|
||||
#endif
|
||||
} contract_call_t;
|
||||
|
||||
#define NETWORK_NAME_MAX_SIZE 12
|
||||
#define NETWORK_STRING_MAX_SIZE 16
|
||||
|
||||
typedef struct txStringProperties_t {
|
||||
char fullAddress[43];
|
||||
char fullAmount[50];
|
||||
char maxFee[50];
|
||||
char nonce[8]; // 10M tx per account ought to be enough for everybody
|
||||
char network_name[NETWORK_NAME_MAX_SIZE];
|
||||
char network_name[NETWORK_STRING_MAX_SIZE];
|
||||
} txStringProperties_t;
|
||||
|
||||
#define SHARED_CTX_FIELD_1_SIZE 100
|
||||
|
||||
@@ -20,7 +20,7 @@ const network_info_t NETWORK_MAPPING[] = {
|
||||
{.chain_id = 137, .name = "Polygon", .ticker = "MATIC "},
|
||||
{.chain_id = 250, .name = "Fantom", .ticker = "FTM "},
|
||||
{.chain_id = 43114, .name = "Avalanche", .ticker = "AVAX "},
|
||||
{.chain_id = 11297108099, .name = "Palm", .ticker = "PALM "}};
|
||||
{.chain_id = 11297108099, .name = "Palm Network", .ticker = "PALM "}};
|
||||
|
||||
uint64_t get_chain_id(void) {
|
||||
uint64_t chain_id = 0;
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
#include <stdint.h>
|
||||
#include "tokens.h"
|
||||
|
||||
#define NETWORK_STRING_MAX_SIZE 12
|
||||
#include "shared_context.h"
|
||||
|
||||
typedef struct network_info_s {
|
||||
const char name[NETWORK_STRING_MAX_SIZE];
|
||||
|
||||
Reference in New Issue
Block a user