Skip to content

Commit

Permalink
Merge pull request #46 from MystenLabs/ml/funds-to-treasury
Browse files Browse the repository at this point in the history
Add main suins profits too on the transfer list
  • Loading branch information
manolisliolios authored Jan 4, 2024
2 parents b1c85de + 783a9ab commit 6d94381
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion scripts/transactions/withdraw_funds_20290927.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,13 @@ const craftTx = async () => {
arguments: [adminCapObj, txb.object('0x2588e11685b460c725e1dc6739a57c483fcd23977369af53d432605225e387f9')],
});

const generalProfits = txb.moveCall({
target: `${config.packageId}::suins::withdraw`,
arguments: [adminCapObj, txb.object(config.suins)],
})

txb.transferObjects(
[auctionProfits],
[auctionProfits, generalProfits],
txb.pure(ADDRESS_TO_TRANSFER_FUNDS, 'address'),
);
await prepareMultisigTx(txb, 'mainnet');
Expand Down

0 comments on commit 6d94381

Please sign in to comment.