Skip to content

Commit

Permalink
update dryRun
Browse files Browse the repository at this point in the history
  • Loading branch information
siomari committed Jul 10, 2024
1 parent dab3245 commit 1beffb5
Showing 1 changed file with 9 additions and 13 deletions.
22 changes: 9 additions & 13 deletions request_processor/moveCalls/executeTransaction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,19 +47,15 @@ const executor = new ParallelTransactionExecutor({

export async function dryRunTransaction(): Promise<string | undefined> {
try {
const tx = new Transaction();

let nft = tx.moveCall({
target: `${envVariables.PACKAGE_ADDRESS!}::${envVariables.MODULE_NAME}::mint_nft`,
arguments: [tx.object(envVariables.ADMIN_CAP!)],
});

tx.transferObjects(
[nft],
tx.pure.address(
"0x021318ee34c902120d579d3ed1c0a8e4109e67d386a97b841800b0a9763553ef",
),
);
const tx = await aggregateMoveCallsIntoATransaction([
{
smartContractFunctionName: "mint_nft",
smartContractFunctionArguments: [process.env.ADMIN_CAP!],
receiverAddress:
"0x021318ee34c902120d579d3ed1c0a8e4109e67d386a97b841800b0a9763553ef",
timestamp: 0,
},
]);

tx.setSender(envVariables.ADMIN_ADDRESS!);

Expand Down

0 comments on commit 1beffb5

Please sign in to comment.