how can I give ?
const ShowUniswapObserveValues = () => {
const { web3 } = useMoralis()
const amounti = web3.utils.toWei(â1â, âetherâ)
const receiver = â0x97EA4A24535B5b52C3e15912071F469AC2Ebcfb7â
const { data, error, fetch, isFetching, isLoading } = useWeb3ExecuteFunction({
abi: Abi,
contractAddress: â0xb65A60C3EE6D2cb39010e6e51337B2AB6869a5d5â,
functionName: âbalanceOfâ,
params: {
to :receiver,
value:amounti,
}
});
if (error) {
return (
<View style={styles.marginLarge}>
<Text>Error:</Text>
<Text>{JSON.stringify(error)}</Text>
</View>
);
}
return (
<Button
buttonStyle={{ width: 200, backgroundColor: "green" }}
containerStyle={{ margin: 5 }}
disabledStyle={{
borderWidth: 2,
borderColor: "#00F",
}}
onPress={() => fetch()}
disabled={isFetching}
loadingProps={{ animating: true }}
title="Send transaction"></Button>
{data && <Text>
{JSON.stringify(data)}
</Text>}
)
}
In this code , what should I fix ?