Comment on page
fill
An entrypoint that accepts TEZ tokens (mostly from DexCore contract or other Bucket contracts), stores them on the contract and doesn't affect the distribution of baker rewards.
An entrypoint doesn't accept any parameters.
Note: you need to pass positive TEZ/mutez amount to the send() method (see example below).
🌮 Taquito
const bucketAddress = "KT1...";
const mutezAmount = 100;
const bucket = await tezos.contract.at(bucketAddress);
const operation = await bucket.methods.fill([]).send({ amount: mutezAmount, mutez: true });
await operation.confirmation();
An entrypoint doesn't throw any errors.
Last modified 1yr ago