Skip to content

Commit 1ee4631

Browse files
committed
fix: wallet details long load
1 parent fe0e5e3 commit 1ee4631

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

cpp/WalletRpcCodeGen.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
WALLET_ASYNC_METHOD(getbalance)
33
WALLET_METHOD(getaddress)
4-
WALLET_METHOD(get_wallet_info)
4+
WALLET_ASYNC_METHOD(get_wallet_info)
55
WALLET_ASYNC_METHOD(get_recent_txs_and_info)
66
WALLET_ASYNC_METHOD(get_recent_txs_and_info2)
77
WALLET_ASYNC_METHOD(transfer)

src/wallet-rpc/wallet-rpc.nitro.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import type { HybridObject } from 'react-native-nitro-modules';
33
export interface WalletRpc extends HybridObject<{ ios: 'c++'; android: 'c++' }> {
44
getbalance(instance_id: number, params: string): Promise<string>;
55
getaddress(instance_id: number, params: string): string;
6-
get_wallet_info(instance_id: number, params: string): string;
6+
get_wallet_info(instance_id: number, params: string): Promise<string>;
77
get_recent_txs_and_info(instance_id: number, params: string): Promise<string>;
88
get_recent_txs_and_info2(instance_id: number, params: string): Promise<string>;
99
transfer(instance_id: number, params: string): Promise<string>;

src/wallet-rpc/wallet-rpc.type.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -835,7 +835,7 @@ export interface IWalletRpc extends WalletRpc {
835835
/** Obtains wallet's public address */
836836
getaddress: WalletMethod<INVOKE_RPC_GET_ADDRESS_REQUEST, INVOKE_RPC_GET_ADDRESS_RESPONSE>;
837837
/** Returns wallet helpful wallet information */
838-
get_wallet_info: WalletMethod<INVOKE_RPC_GET_WALLET_INFO_REQUEST, INVOKE_RPC_GET_WALLET_INFO_RESPONSE>;
838+
get_wallet_info: WalletAsyncMethod<INVOKE_RPC_GET_WALLET_INFO_REQUEST, INVOKE_RPC_GET_WALLET_INFO_RESPONSE>;
839839
/** Returns wallet history of transactions */
840840
get_recent_txs_and_info: WalletAsyncMethod<INVOKE_RPC_GET_RECENT_TXS_AND_INFO_REQUEST, INVOKE_RPC_GET_RECENT_TXS_AND_INFO_RESPONSE>;
841841
/** Returns wallet history of transactions V2 (post-zarcanum version) */

0 commit comments

Comments
 (0)