File tree Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change 63
63
64
64
#include <stdint.h>
65
65
66
+ #include "base58.h"
66
67
#include "icp_api.h"
67
68
#include "icp_context.h"
68
69
#include "icp_helpers.h"
@@ -329,14 +330,11 @@ static bool get_user_verification(void) {
329
330
prefixed_account_id [0 ] = 0x00 ;
330
331
memcpy (prefixed_account_id + 1 , decoded_utxn -> Destination , 20 );
331
332
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 )) {
340
338
icp_send_error (ERROR_COMMON_ERROR_UNKNOWN_ERROR_TAG , 2 );
341
339
return false;
342
340
}
You can’t perform that action at this time.
0 commit comments