From 5ec3ca1ed6e56d83cc8ec27e494a5550923055c8 Mon Sep 17 00:00:00 2001 From: "Kujtim.Prenku" Date: Tue, 9 Aug 2022 14:05:13 +0200 Subject: [PATCH 1/2] Return the result of signAndSendTransaction for my near wallet --- packages/core/src/lib/wallet/wallet.types.ts | 3 ++- packages/my-near-wallet/src/lib/my-near-wallet.ts | 3 --- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/packages/core/src/lib/wallet/wallet.types.ts b/packages/core/src/lib/wallet/wallet.types.ts index 951e5366a..435409d31 100644 --- a/packages/core/src/lib/wallet/wallet.types.ts +++ b/packages/core/src/lib/wallet/wallet.types.ts @@ -10,6 +10,7 @@ import type { Options } from "../options.types"; import type { ReadOnlyStore } from "../store.types"; import type { Transaction, Action } from "./transactions.types"; import type { Modify, Optional } from "../utils.types"; +import type { FinalExecutionOutcome } from "near-api-js/lib/providers"; interface BaseWalletMetadata { name: string; @@ -90,7 +91,7 @@ export type BrowserWalletBehaviour = Modify< { signAndSendTransaction( params: BrowserWalletSignAndSendTransactionParams - ): Promise; + ): Promise; signAndSendTransactions( params: BrowserWalletSignAndSendTransactionsParams ): Promise; diff --git a/packages/my-near-wallet/src/lib/my-near-wallet.ts b/packages/my-near-wallet/src/lib/my-near-wallet.ts index be74d70a2..d116733c6 100644 --- a/packages/my-near-wallet/src/lib/my-near-wallet.ts +++ b/packages/my-near-wallet/src/lib/my-near-wallet.ts @@ -179,9 +179,6 @@ const MyNearWallet: WalletBehaviourFactory< receiverId: receiverId || contract.contractId, actions: actions.map((action) => createAction(action)), walletCallbackUrl: callbackUrl, - }).then(() => { - // Suppress response since transactions with deposits won't actually - // return FinalExecutionOutcome. }); }, From 9d2903fd66a872328de1d623d00ab04ceb7a7117 Mon Sep 17 00:00:00 2001 From: "Kujtim.Prenku" Date: Wed, 10 Aug 2022 09:24:19 +0200 Subject: [PATCH 2/2] Bumped version to 5.0.3 --- package.json | 2 +- packages/core/package.json | 2 +- packages/ledger/package.json | 2 +- packages/math-wallet/package.json | 2 +- packages/modal-ui/package.json | 2 +- packages/my-near-wallet/package.json | 2 +- packages/near-wallet/package.json | 2 +- packages/nightly-connect/package.json | 2 +- packages/nightly/package.json | 2 +- packages/sender/package.json | 2 +- packages/wallet-connect/package.json | 2 +- packages/wallet-utils/package.json | 2 +- 12 files changed, 12 insertions(+), 12 deletions(-) diff --git a/package.json b/package.json index c3ec6963e..f5c376746 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "near-wallet-selector", - "version": "5.0.2", + "version": "5.0.3", "description": "NEAR Wallet Selector makes it easy for users to interact with your dApp by providing an abstraction over various wallets within the NEAR ecosystem", "keywords": [ "near", diff --git a/packages/core/package.json b/packages/core/package.json index a2772b40f..611f1f028 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,4 +1,4 @@ { "name": "@near-wallet-selector/core", - "version": "5.0.2" + "version": "5.0.3" } diff --git a/packages/ledger/package.json b/packages/ledger/package.json index bb775aa81..c2427429f 100644 --- a/packages/ledger/package.json +++ b/packages/ledger/package.json @@ -1,4 +1,4 @@ { "name": "@near-wallet-selector/ledger", - "version": "5.0.2" + "version": "5.0.3" } diff --git a/packages/math-wallet/package.json b/packages/math-wallet/package.json index dc630017a..0d23b8ae8 100644 --- a/packages/math-wallet/package.json +++ b/packages/math-wallet/package.json @@ -1,4 +1,4 @@ { "name": "@near-wallet-selector/math-wallet", - "version": "5.0.2" + "version": "5.0.3" } diff --git a/packages/modal-ui/package.json b/packages/modal-ui/package.json index 2fbc50491..8b5e6963b 100644 --- a/packages/modal-ui/package.json +++ b/packages/modal-ui/package.json @@ -1,4 +1,4 @@ { "name": "@near-wallet-selector/modal-ui", - "version": "5.0.2" + "version": "5.0.3" } diff --git a/packages/my-near-wallet/package.json b/packages/my-near-wallet/package.json index 6b54b7fb3..484490720 100644 --- a/packages/my-near-wallet/package.json +++ b/packages/my-near-wallet/package.json @@ -1,4 +1,4 @@ { "name": "@near-wallet-selector/my-near-wallet", - "version": "5.0.2" + "version": "5.0.3" } diff --git a/packages/near-wallet/package.json b/packages/near-wallet/package.json index 9794f7001..fb61bb5d3 100644 --- a/packages/near-wallet/package.json +++ b/packages/near-wallet/package.json @@ -1,4 +1,4 @@ { "name": "@near-wallet-selector/near-wallet", - "version": "5.0.2" + "version": "5.0.3" } diff --git a/packages/nightly-connect/package.json b/packages/nightly-connect/package.json index 60066003b..ef0736dee 100644 --- a/packages/nightly-connect/package.json +++ b/packages/nightly-connect/package.json @@ -1,4 +1,4 @@ { "name": "@near-wallet-selector/nightly-connect", - "version": "5.0.2" + "version": "5.0.3" } diff --git a/packages/nightly/package.json b/packages/nightly/package.json index 50c800f84..08aa4045f 100644 --- a/packages/nightly/package.json +++ b/packages/nightly/package.json @@ -1,4 +1,4 @@ { "name": "@near-wallet-selector/nightly", - "version": "5.0.2" + "version": "5.0.3" } diff --git a/packages/sender/package.json b/packages/sender/package.json index fdadd2102..c838d21fb 100644 --- a/packages/sender/package.json +++ b/packages/sender/package.json @@ -1,4 +1,4 @@ { "name": "@near-wallet-selector/sender", - "version": "5.0.2" + "version": "5.0.3" } diff --git a/packages/wallet-connect/package.json b/packages/wallet-connect/package.json index ed5555804..27357c340 100644 --- a/packages/wallet-connect/package.json +++ b/packages/wallet-connect/package.json @@ -1,4 +1,4 @@ { "name": "@near-wallet-selector/wallet-connect", - "version": "5.0.2" + "version": "5.0.3" } diff --git a/packages/wallet-utils/package.json b/packages/wallet-utils/package.json index 8b35d727f..985a577ca 100644 --- a/packages/wallet-utils/package.json +++ b/packages/wallet-utils/package.json @@ -1,4 +1,4 @@ { "name": "@near-wallet-selector/wallet-utils", - "version": "5.0.2" + "version": "5.0.3" }