fix gas estimate bug
This commit is contained in:
parent
f566a72b06
commit
8859ff6979
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user