We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3724cd3 commit 85eb672Copy full SHA for 85eb672
1 file changed
lib/common/utils/execute.ts
@@ -5,7 +5,7 @@ import {
5
BaseContractMethod,
6
} from 'ethers'
7
import { TransactionResponse } from '@ethersproject/abstract-provider'
8
-import { keys, mergeAll } from 'ramda'
+import { always, keys, mergeAll } from 'ramda'
9
10
import { Positions } from '../../ethereum/s-tokens'
11
import { Rewards } from '../../ethereum/s-tokens/rewards'
@@ -147,7 +147,9 @@ export const execute: ExecuteFunction = async <
147
) => {
148
const signer =
149
typeof (opts.contract?.runner as BrowserProvider)?.getSigner === 'function'
150
- ? await (opts.contract.runner as BrowserProvider).getSigner()
+ ? await (opts.contract.runner as BrowserProvider)
151
+ .getSigner()
152
+ .catch(always(undefined))
153
: undefined
154
const contract =
155
opts.mutation && signer
0 commit comments