Update
This commit is contained in:
parent
ffd79bcf02
commit
3177abeceb
|
@ -64,7 +64,6 @@ export async function swapErc20ToSpl({
|
||||||
let gasLimit = await erc20.methods
|
let gasLimit = await erc20.methods
|
||||||
.approve(swapAddress, encodedAmount)
|
.approve(swapAddress, encodedAmount)
|
||||||
.estimateGas({ from: ethAccount });
|
.estimateGas({ from: ethAccount });
|
||||||
|
|
||||||
const approveTx = erc20.methods
|
const approveTx = erc20.methods
|
||||||
.approve(swapAddress, encodedAmount)
|
.approve(swapAddress, encodedAmount)
|
||||||
.send({ from: ethAccount, gasLimit });
|
.send({ from: ethAccount, gasLimit });
|
||||||
|
@ -165,7 +164,7 @@ export async function withdrawEth(from, withdrawal, callAsync) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
pendingNonces.add(nonce);
|
pendingNonces.add(nonce);
|
||||||
const gasLimit = await method.send({ from });
|
const gasLimit = await method.estimateGas({ from });
|
||||||
await callAsync(method.send({ from, gasLimit }), {
|
await callAsync(method.send({ from, gasLimit }), {
|
||||||
progressMessage: `Completing ${withdrawal.coin.ticker} transfer...`,
|
progressMessage: `Completing ${withdrawal.coin.ticker} transfer...`,
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue