fix gas estimate bug

This commit is contained in:
Moody Salem 2021-04-29 11:56:02 -05:00
parent f566a72b06
commit 8859ff6979
No known key found for this signature in database
GPG Key ID: 8CB5CD10385138DB

@ -149,8 +149,9 @@ export function useSwapCallback(
const tx =
!value || isZero(value)
? { to: address, data: calldata }
? { from: account, to: address, data: calldata }
: {
from: account,
to: address,
data: calldata,
value,