Skip to content

Commit

Permalink
Fix bug causing users to be unable to claim reward
Browse files Browse the repository at this point in the history
  • Loading branch information
Wojciech Turek committed Mar 30, 2022
1 parent e987623 commit c1c462a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions background/redux-slices/earn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -375,8 +375,8 @@ export const claimVaultRewards = createBackgroundAsyncThunk(
signer
)
const tx = await vaultContract.functions["getReward()"]()
await signer.sendTransaction(tx)

const response = signer.sendTransaction(tx)
await tx.wait(response)
dispatch(updateEarnedValues())
}
)
Expand Down
2 changes: 1 addition & 1 deletion background/services/internal-ethereum-provider/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ export default class InternalEthereumProviderService extends BaseService<Events>
)}`
case "eth_blockNumber":
case "eth_call":
case "eth_estimateGas":
case "eth_feeHistory":
case "eth_gasPrice":
case "eth_getBalance":
Expand Down Expand Up @@ -194,7 +195,6 @@ export default class InternalEthereumProviderService extends BaseService<Events>
case "metamask_sendDomainMetadata":
case "wallet_requestPermissions":
case "wallet_watchAsset":
case "eth_estimateGas":
case "estimateGas": // --- eip1193-bridge only method --
case "eth_coinbase": // --- MM only methods ---
case "eth_decrypt":
Expand Down

0 comments on commit c1c462a

Please sign in to comment.