fix gas estimate bug
This commit is contained in:
parent
f566a72b06
commit
8859ff6979
@ -149,8 +149,9 @@ export function useSwapCallback(
|
|||||||
|
|
||||||
const tx =
|
const tx =
|
||||||
!value || isZero(value)
|
!value || isZero(value)
|
||||||
? { to: address, data: calldata }
|
? { from: account, to: address, data: calldata }
|
||||||
: {
|
: {
|
||||||
|
from: account,
|
||||||
to: address,
|
to: address,
|
||||||
data: calldata,
|
data: calldata,
|
||||||
value,
|
value,
|
||||||
|
Loading…
Reference in New Issue
Block a user