import { prepareContractCall, sendTransaction } from "thirdweb";
const transaction = await prepareContractCall({
contract,
method: "function ExchangeNewForOld(uint256 tokenNumber)",
params: [tokenNumber]
});
const { transactionHash } = await sendTransaction({
transaction,
account
});