Skip to content

Commit

Permalink
add verbose to create
Browse files Browse the repository at this point in the history
  • Loading branch information
nitro-marky committed Sep 4, 2023
1 parent e4483b8 commit b2f89db
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/lib/process/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ export const createProcessTransaction = async (
polkadot: Polkadot.Polkadot,
processId: string,
program: Process.Program,
options: Polkadot.Options
options: Polkadot.Options,
verbose?: boolean
): Promise<Process.Payload> => {
const sudo = polkadot.keyring.addFromUri(options.USER_URI)

Expand All @@ -40,7 +41,7 @@ export const createProcessTransaction = async (
id: data[0].toHuman(),
version: data[1].toNumber(),
status: 'Enabled',
program,
...verbose ? program : {},
}

unsub()
Expand Down
2 changes: 1 addition & 1 deletion src/lib/process/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ export const createProcess = async (

return {
message: `Transaction for new process ${name} has been successfully submitted`,
process: await createProcessTransaction(polkadot, processId, program, options),
process: await createProcessTransaction(polkadot, processId, program, options, verbose),
}
} catch (err) {
// err is basically from errors.ts or any exception
Expand Down

0 comments on commit b2f89db

Please sign in to comment.