Update some prototypes to use chainId value instead of chainConfig structure

This commit is contained in:
TamtamHero
2021-08-30 11:02:55 +02:00
parent 3e25f04d05
commit 0d45d2e2d0
10 changed files with 27 additions and 33 deletions

View File

@@ -50,7 +50,7 @@ void handleGetPublicKey(uint8_t p1,
getEthAddressStringFromKey(&tmpCtx.publicKeyContext.publicKey,
tmpCtx.publicKeyContext.address,
&global_sha3,
chainConfig);
chainConfig->chainId);
#ifndef NO_CONSENT
if (p1 == P1_NON_CONFIRM)
#endif // NO_CONSENT

View File

@@ -419,7 +419,7 @@ void finalizeParsing(bool direct) {
displayBuffer,
sizeof(displayBuffer),
&global_sha3,
chainConfig);
chainConfig->chainId);
compareOrCopy(strings.common.fullAddress,
sizeof(strings.common.fullAddress),
displayBuffer,

View File

@@ -183,7 +183,7 @@ UX_STEP_NOCB_INIT(
strings.tmp.tmp,
sizeof(strings.tmp.tmp),
&global_sha3,
chainConfig),
chainConfig->chainId),
{
.title = "Cond. Address",
.text = strings.tmp.tmp