Skip to content

Commit 4ff7cea

Browse files
committed
abi: remove extra code from the tests file
1 parent 72f01ef commit 4ff7cea

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

test/test-eth-abi.c

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -3,25 +3,6 @@
33
#include <tap.h>
44
#include <assert.h>
55

6-
void print_formatted_hex(const char *hex_str, size_t len) {
7-
size_t bytes = len / 2; // 2 hex characters per byte
8-
size_t address = 0;
9-
10-
for (size_t i = 0; i < bytes; ++i) {
11-
if (i % 32 == 0) {
12-
if (i != 0) printf("\n");
13-
14-
printf("0x%02X: ", (unsigned int)address);
15-
address += 0x20;
16-
}
17-
18-
// Print two characters (one byte)
19-
printf("%c%c", hex_str[i * 2], hex_str[i * 2 + 1]);
20-
}
21-
22-
printf("\n");
23-
}
24-
256
void test_eth_abi_bool(void) {
267
struct eth_abi abi0={0}, abi1={0};
278
uint8_t b0=1, b1=0, b2, b3;

0 commit comments

Comments
 (0)