diff --git a/LICENSE b/LICENSE index 675bf71..0198aa8 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2022 Pawan Paudel +Copyright (c) 2024 Pawan Paudel Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/src/lib/deploy.ts b/src/lib/deploy.ts index 6fa32e4..bcc5f84 100644 --- a/src/lib/deploy.ts +++ b/src/lib/deploy.ts @@ -113,7 +113,7 @@ export async function deployContract({ name, walletPath, contractPath }: DeployA if (!processId) { processId = await spawn({ module, signer, tags, data, scheduler }) - await sleep() + await sleep(5000) } const contractSrc = loadContract(contractPath) @@ -127,7 +127,7 @@ export async function deployContract({ name, walletPath, contractPath }: DeployA data: contractSrc, signer, }), - 5, + 10, 3000, ) diff --git a/src/lib/load.ts b/src/lib/load.ts index 956c7e0..517783f 100644 --- a/src/lib/load.ts +++ b/src/lib/load.ts @@ -1,3 +1,11 @@ +/* + * This file contains code derived from the aos codebase (c) 2024 Forward Research, + * licensed under the Business Source License 1.1 until the Change Date, after which + * it will transition to MPL 2.0. + * + * https://github.com/permaweb/aos/blob/main/LICENSE + */ + // https://github.com/permaweb/aos/blob/main/src/services/loading-files.js#L30 import path from 'node:path' @@ -136,6 +144,6 @@ export function loadContract(contractPath: string) { return line } else { - throw new Error(chalk.red('ERROR: .load function requires a *.lua file')) + throw new Error(chalk.red('It requires a *.lua file')) } }