Skip to content

Commit

Permalink
[trivial] add wallet_showCallsStatus (#1286)
Browse files Browse the repository at this point in the history
* add showCallsStatus

* type
  • Loading branch information
lukasrosario authored May 10, 2024
1 parent 765f36c commit 2d68dd2
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
13 changes: 12 additions & 1 deletion apps/testapp/src/components/RpcMethods/method/walletTxMethods.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,15 @@ const walletGetCallsStatus: RpcRequestInput = {
format: (data: Record<string, string>) => [data.params],
};

export const walletTxMethods = [walletGetCapabilities, walletGetCallsStatus, walletSendCalls];
const walletShowCallsStatus: RpcRequestInput = {
method: 'wallet_showCallsStatus',
params: [{ key: 'params', required: true }],
format: (data: { params: string }) => [data.params],
};

export const walletTxMethods = [
walletGetCapabilities,
walletGetCallsStatus,
walletShowCallsStatus,
walletSendCalls,
];
1 change: 1 addition & 0 deletions packages/wallet-sdk/src/core/provider/method.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ const mapping = {
'wallet_watchAsset',
'wallet_getCapabilities',
'wallet_sendCalls',
'wallet_showCallsStatus',
],
state: [
// internal state
Expand Down

0 comments on commit 2d68dd2

Please sign in to comment.