File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 5
5
BaseContractMethod ,
6
6
} from 'ethers'
7
7
import { TransactionResponse } from '@ethersproject/abstract-provider'
8
- import { keys , mergeAll } from 'ramda'
8
+ import { always , keys , mergeAll } from 'ramda'
9
9
10
10
import { Positions } from '../../ethereum/s-tokens'
11
11
import { Rewards } from '../../ethereum/s-tokens/rewards'
@@ -147,7 +147,9 @@ export const execute: ExecuteFunction = async <
147
147
) => {
148
148
const signer =
149
149
typeof ( opts . contract ?. runner as BrowserProvider ) ?. getSigner === 'function'
150
- ? await ( opts . contract . runner as BrowserProvider ) . getSigner ( )
150
+ ? await ( opts . contract . runner as BrowserProvider )
151
+ . getSigner ( )
152
+ . catch ( always ( undefined ) )
151
153
: undefined
152
154
const contract =
153
155
opts . mutation && signer
You can’t perform that action at this time.
0 commit comments