Skip to content

Commit 30eb4f0

Browse files
committed
fix: Remove obsolete code
1 parent c7f8534 commit 30eb4f0

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

apps/icp_app/icp_txn.c

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@
6363

6464
#include <stdint.h>
6565

66+
#include "base58.h"
6667
#include "icp_api.h"
6768
#include "icp_context.h"
6869
#include "icp_helpers.h"
@@ -329,14 +330,11 @@ static bool get_user_verification(void) {
329330
prefixed_account_id[0] = 0x00;
330331
memcpy(prefixed_account_id + 1, decoded_utxn->Destination, 20);
331332

332-
// icp uses different base58 dictionary, that's why a custom function
333-
if (!base58_encode_check_with_custom_digits_order(
334-
prefixed_account_id,
335-
ICP_PREFIXED_ACCOUNT_ID_LENGTH,
336-
HASHER_SHA2D,
337-
to_address,
338-
ICP_ACCOUNT_ADDRESS_LENGTH + 1,
339-
ICP_BASE58_DIGITS_ORDERED)) {
333+
if (!base58_encode_check(prefixed_account_id,
334+
ICP_PREFIXED_ACCOUNT_ID_LENGTH,
335+
HASHER_SHA2D,
336+
to_address,
337+
ICP_ACCOUNT_ADDRESS_LENGTH + 1)) {
340338
icp_send_error(ERROR_COMMON_ERROR_UNKNOWN_ERROR_TAG, 2);
341339
return false;
342340
}

0 commit comments

Comments
 (0)