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 55 BaseContractMethod ,
66} from 'ethers'
77import { TransactionResponse } from '@ethersproject/abstract-provider'
8- import { keys , mergeAll } from 'ramda'
8+ import { always , keys , mergeAll } from 'ramda'
99
1010import { Positions } from '../../ethereum/s-tokens'
1111import { Rewards } from '../../ethereum/s-tokens/rewards'
@@ -147,7 +147,9 @@ export const execute: ExecuteFunction = async <
147147) => {
148148 const signer =
149149 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 ) )
151153 : undefined
152154 const contract =
153155 opts . mutation && signer
You can’t perform that action at this time.
0 commit comments