Skip to content

Commit

Permalink
refactor: specify return type in getContractBuild function
Browse files Browse the repository at this point in the history
  • Loading branch information
blockchainguyy committed Jul 12, 2024
1 parent 3b9b342 commit ac09ac6
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/tx-builder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
} from '@mysten/sui.js/client';
import { Keypair } from '@mysten/sui.js/dist/cjs/cryptography';
import { TransactionBlock, TransactionObjectInput, TransactionResult } from '@mysten/sui.js/transactions';
import { utils as ethersUtils } from 'ethers';
import { Bytes, utils as ethersUtils } from 'ethers';
import tmp from 'tmp';
import { updateMoveToml } from './utils';

Expand Down Expand Up @@ -243,7 +243,10 @@ class TxBuilder {
});
}

async getContractBuild(packageName: string, moveDir: string = `${__dirname}/../move`) {
async getContractBuild(
packageName: string,
moveDir: string = `${__dirname}/../move`,
): Promise<{ modules: string[]; dependencies: string[]; digest: Bytes }> {
updateMoveToml(packageName, '0x0', moveDir);

tmp.setGracefulCleanup();
Expand Down

0 comments on commit ac09ac6

Please sign in to comment.