Commit 8859ff69 authored by Moody Salem's avatar Moody Salem

fix gas estimate bug

parent f566a72b
......@@ -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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment