Skip to content

Commit

Permalink
add main profits too
Browse files Browse the repository at this point in the history
  • Loading branch information
manolisliolios committed Jan 4, 2024
1 parent b1c85de commit c3fbfed
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, config.suins],
})

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

0 comments on commit c3fbfed

Please sign in to comment.