Skip to content

Commit 3d9da0d

Browse files
Move basic utility functions from ethUtils to main utils file
1 parent 1155bd2 commit 3d9da0d

38 files changed

+294
-390
lines changed

src/ethUtils.c

Lines changed: 0 additions & 267 deletions
This file was deleted.

src/ethUtils.h

Lines changed: 0 additions & 74 deletions
This file was deleted.

src/eth_plugin_handler.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
#include "eth_plugin_internal.h"
44
#include "shared_context.h"
55
#include "network.h"
6-
#include "ethUtils.h"
76

87
void eth_plugin_prepare_init(ethPluginInitContract_t *init,
98
const uint8_t *selector,

src/eth_plugin_internal.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#include <string.h>
22
#include "eth_plugin_internal.h"
3-
#include "ethUtils.h" // allzeroes
43

54
bool erc20_plugin_available_check(void);
65

src/handle_check_address.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#include "handle_check_address.h"
22
#include "os.h"
33
#include "shared_context.h"
4-
#include "ethUtils.h"
54
#include "string.h"
65

76
#define ZERO(x) explicit_bzero(&x, sizeof(x))

src/handle_get_printable_amount.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
#include "swap_utils.h"
55
#include "handle_get_printable_amount.h"
66
#include "shared_context.h"
7-
#include "ethUtils.h"
87
#include "utils.h"
98
#include "uint256.h"
109
#include "string.h"

src/stark_crypto.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
#include "shared_context.h"
44
#include "stark_utils.h"
55
#include "utils.h"
6-
#include "ethUtils.h"
76

87
extraInfo_t *getKnownToken(uint8_t *contractAddress);
98

src/stark_utils.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
#include "stark_crypto.h"
44
#include "shared_context.h"
5-
#include "ethUtils.h"
65
#include "uint256.h"
76
#include "uint_common.h"
87

src/uint128.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
#include <string.h>
2222
#include "uint128.h"
2323
#include "uint_common.h"
24-
#include "ethUtils.h" // HEXDIGITS
24+
#include "utils.h" // HEXDIGITS
2525

2626
void readu128BE(const uint8_t *const buffer, uint128_t *const target) {
2727
UPPER_P(target) = readUint64BE(buffer);

0 commit comments

Comments
 (0)