diff --git a/packages/tools/kadena-cli/src/devnet/utils/simulation/coin/simulate.ts b/packages/tools/kadena-cli/src/devnet/utils/simulation/coin/simulate.ts index 9e4c5702bf..59184f0ca0 100644 --- a/packages/tools/kadena-cli/src/devnet/utils/simulation/coin/simulate.ts +++ b/packages/tools/kadena-cli/src/devnet/utils/simulation/coin/simulate.ts @@ -128,7 +128,7 @@ export async function simulateCoin({ } accounts.push(account); - appendToLogFile(filepath, { + await appendToLogFile(filepath, { timestamp: Date.now(), from: defaultAccount.account, to: account.account, @@ -255,7 +255,7 @@ export async function simulateCoin({ } } - appendToLogFile(filepath, { + await appendToLogFile(filepath, { timestamp: Date.now(), from: account.account, to: nextAccount.account, @@ -278,7 +278,7 @@ export async function simulateCoin({ } } catch (error) { console.error(error); - appendToLogFile(filepath, { error }); + await appendToLogFile(filepath, { error }); throw error; } } diff --git a/packages/tools/kadena-cli/src/devnet/utils/simulation/helper.ts b/packages/tools/kadena-cli/src/devnet/utils/simulation/helper.ts index 08827f3d17..ba37775ea7 100644 --- a/packages/tools/kadena-cli/src/devnet/utils/simulation/helper.ts +++ b/packages/tools/kadena-cli/src/devnet/utils/simulation/helper.ts @@ -4,7 +4,7 @@ import { getBalance } from '@kadena/client-utils/coin'; import { genKeyPair } from '@kadena/cryptography-utils'; import type { ChainId } from '@kadena/types'; import seedrandom from 'seedrandom'; -import type { IAccount} from '../../../constants/devnets.js'; +import type { IAccount } from '../../../constants/devnets.js'; import { simulationDefaults } from '../../../constants/devnets.js'; export const generateAccount = async ( diff --git a/packages/tools/kadena-cli/src/utils/simulationOptions.ts b/packages/tools/kadena-cli/src/utils/simulationOptions.ts index dbcec333ad..54da42d6ad 100644 --- a/packages/tools/kadena-cli/src/utils/simulationOptions.ts +++ b/packages/tools/kadena-cli/src/utils/simulationOptions.ts @@ -2,7 +2,7 @@ import { Option } from 'commander'; import { z } from 'zod'; import { createOption } from './createOption.js'; -import { ChainId } from '@kadena/types'; +import type { ChainId } from '@kadena/types'; import { simulate as simulationPrompts } from '../prompts/index.js'; export const simulationOptions = { //Simulation