Remove INDEX_MAX from withdrawal_index.h ; set limit to 2^19

This commit is contained in:
pscott
2021-04-22 14:57:30 +02:00
parent 18822f9462
commit 550fc86ba8
3 changed files with 3 additions and 8 deletions

View File

@@ -18,11 +18,6 @@ void handleSetEth2WithdrawalIndex(uint8_t p1,
THROW(0x6B00);
}
eth2WithdrawalIndex = U4BE(dataBuffer, 0);
if (eth2WithdrawalIndex > INDEX_MAX) {
THROW(0x6A80); // scott throw this error code or create new one ?
}
THROW(0x9000);
}

View File

@@ -1,7 +1,5 @@
#include "stdint.h"
#define INDEX_MAX 1337 // scott
void handleSetEth2WithdrawalIndex(uint8_t p1,
uint8_t p2,
uint8_t *dataBuffer,