Skip to content

Commit

Permalink
upd fund & fund-boosted examples
Browse files Browse the repository at this point in the history
  • Loading branch information
avernikoz committed Apr 3, 2024
1 parent 39b0905 commit 835722e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion examples/3-fund.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ import {
);

const txb = new TransactionBlock();
const [coin] = txb.splitCoins(txb.gas, [txb.pure(197600741882442, "u64")]);
// Please note: the amount for the boosted refund is taken from the output logs of fetch-by-address-script/fetch-transaction-by-address.ts.
const amountForBaseRefund = 197600741882442
const [coin] = txb.splitCoins(txb.gas, [txb.pure(amountForBaseRefund, "u64")]);

txb.moveCall({
target: `${contractAddress}::refund::fund`,
Expand Down
4 changes: 3 additions & 1 deletion examples/4-fund-boosted.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ import {
);

const txb = new TransactionBlock();
const [coin] = txb.splitCoins(txb.gas, [txb.pure(98800370941221, "u64")]);
// Please note: the amount for the boosted refund is taken from the output logs of fetch-by-address-script/fetch-transaction-by-address.ts.
const amountForBoostedRefund = 98800370941221
const [coin] = txb.splitCoins(txb.gas, [txb.pure(amountForBoostedRefund, "u64")]);

txb.moveCall({
target: `${contractAddress}::booster::fund`,
Expand Down

0 comments on commit 835722e

Please sign in to comment.