Skip to content

Commit 3f9583f

Browse files
Test EIP-7702 whitelist not compiled by default anymore
1 parent d6b2648 commit 3f9583f

File tree

4 files changed

+9
-6
lines changed

4 files changed

+9
-6
lines changed

.github/workflows/build_and_functional_tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
uses: LedgerHQ/ledger-app-workflows/.github/workflows/reusable_build.yml@v1
3333
with:
3434
upload_app_binaries_artifact: "ragger_elfs"
35-
flags: "CAL_TEST_KEY=1 TRUSTED_NAME_TEST_KEY=1 SET_PLUGIN_TEST_KEY=1 NFT_TEST_KEY=1"
35+
flags: "CAL_TEST_KEY=1 TRUSTED_NAME_TEST_KEY=1 SET_PLUGIN_TEST_KEY=1 NFT_TEST_KEY=1 EIP7702_TEST_WHITELIST=1"
3636

3737
ragger_tests:
3838
name: Run ragger tests using the reusable workflow

ledger_app.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ sdk = "C"
44
devices = ["nanos", "nanox", "nanos+", "stax", "flex"]
55

66
[use_cases]
7-
use_test_keys = "CAL_TEST_KEY=1 TRUSTED_NAME_TEST_KEY=1 SET_PLUGIN_TEST_KEY=1 NFT_TEST_KEY=1"
8-
dbg_use_test_keys = "DEBUG=1 CAL_TEST_KEY=1 TRUSTED_NAME_TEST_KEY=1 SET_PLUGIN_TEST_KEY=1 NFT_TEST_KEY=1"
7+
use_test_keys = "CAL_TEST_KEY=1 TRUSTED_NAME_TEST_KEY=1 SET_PLUGIN_TEST_KEY=1 NFT_TEST_KEY=1 EIP7702_TEST_WHITELIST=1"
8+
dbg_use_test_keys = "DEBUG=1 CAL_TEST_KEY=1 TRUSTED_NAME_TEST_KEY=1 SET_PLUGIN_TEST_KEY=1 NFT_TEST_KEY=1 EIP7702_TEST_WHITELIST=1"
99
cal_bypass = "BYPASS_SIGNATURES=1"
1010
dbg_cal_bypass = "DEBUG=1 BYPASS_SIGNATURES=1"
1111

makefile_conf/features.mk

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,11 @@ endif
7878
ifneq ($(TARGET_NAME),TARGET_NANOS)
7979
DEFINES += HAVE_EIP7702
8080
DEFINES += HAVE_EIP7702_WHITELIST
81-
# Test mode
82-
DEFINES += HAVE_EIP7702_WHITELIST_TEST
81+
82+
EIP7702_TEST_WHITELIST ?= 0
83+
ifneq ($(EIP7702_TEST_WHITELIST),0)
84+
DEFINES += HAVE_EIP7702_WHITELIST_TEST
85+
endif
8386
endif
8487

8588
# Check features incompatibilities

src_features/signAuthorizationEIP7702/whitelist_7702.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,4 @@ const char *get_delegate_name(const uint64_t *chain_id, const uint8_t *address)
4646
return NULL;
4747
}
4848

49-
#endif // HAVE_EIP7702_WHITELIST
49+
#endif // HAVE_EIP7702_WHITELIST

0 commit comments

Comments
 (0)