Skip to content
This repository was archived by the owner on Feb 25, 2023. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/services/eth.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export default class Ethereum {
}

// approve a spender to transfer tokens from a wallet address
async approveERC20 (wallet, spender, tokenAddress, amount, gasPrice = this.gasPrice, gasLimit = this.approvalGasLimit) {
async approveERC20 (wallet, spender, tokenAddress, amount, gasPrice = this.gasPrice, gasLimit = 50000) {
try {
// instantiate a contract and pass in wallet, which act on behalf of that signer
const contract = new ethers.Contract(tokenAddress, abi.ERC20Abi, wallet)
Expand Down