Comment on page
default
An entrypoint that receives TEZ which were mistakenly sent to the contract and transfers them to the Burner contract.
An entrypoint doesn't accept any parameters.
Note: you need to pass positive TEZ/mutez amount to send() method (see example below).
🌮 Taquito
const qFarmAddress = "KT1...";
const mutezAmount = 100;
const qFarm = await tezos.contract.at(qFarmAddress);
const operation = await qFarm.methods.default([]).send({ amount: mutezAmount, mutez: true });
await operation.confirmation();
An entrypoint doesn't throw any error.
Last modified 1yr ago