Skip to content

Commit

Permalink
Explicitely set gas limit when swapping SPL to ERC20
Browse files Browse the repository at this point in the history
  • Loading branch information
garywang committed Jan 3, 2021
1 parent 4e19e0f commit 8b39972
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/swap/eth.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ export async function withdrawEth(from, withdrawal, callAsync) {
return;
}
pendingNonces.add(nonce);
await callAsync(method.send({ from }), {
await callAsync(method.send({ from, gasLimit: 200000 }), {
progressMessage: `Completing ${withdrawal.coin.ticker} transfer...`,
});
pendingNonces.delete(nonce);
Expand Down

0 comments on commit 8b39972

Please sign in to comment.