diff --git a/src/apdu_constants.h b/src/apdu_constants.h index 41d0207..1937075 100644 --- a/src/apdu_constants.h +++ b/src/apdu_constants.h @@ -72,7 +72,7 @@ void handleProvideErc20TokenInformation(uint8_t p1, unsigned int *tx); void handleProvideNFTInformation(uint8_t p1, uint8_t p2, - uint8_t *dataBuffer, + const uint8_t *dataBuffer, uint16_t dataLength, unsigned int *flags, unsigned int *tx); diff --git a/src_features/provideNFTInformation/cmd_provideNFTInfo.c b/src_features/provideNFTInformation/cmd_provideNFTInfo.c index 6f53b80..8d373ba 100644 --- a/src_features/provideNFTInformation/cmd_provideNFTInfo.c +++ b/src_features/provideNFTInformation/cmd_provideNFTInfo.c @@ -218,7 +218,7 @@ void handleProvideNFTInformation(uint8_t p1, hashId, hash, sizeof(hash), - workBuffer + offset, + (uint8_t *) workBuffer + offset, signatureLen)) { #ifndef HAVE_BYPASS_SIGNATURES PRINTF("Invalid NFT signature\n");