Skip to content

Commit

Permalink
refactor: Update retry count
Browse files Browse the repository at this point in the history
  • Loading branch information
pawanpaudel93 committed Mar 17, 2024
1 parent 522a050 commit 3ada3cf
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2022 Pawan Paudel <https://github.com/pawanpaudel93>
Copyright (c) 2024 Pawan Paudel <https://github.com/pawanpaudel93>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
4 changes: 2 additions & 2 deletions src/lib/deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -127,7 +127,7 @@ export async function deployContract({ name, walletPath, contractPath }: DeployA
data: contractSrc,
signer,
}),
5,
10,
3000,
)

Expand Down
10 changes: 9 additions & 1 deletion src/lib/load.ts
Original file line number Diff line number Diff line change
@@ -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'
Expand Down Expand Up @@ -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'))
}
}

0 comments on commit 3ada3cf

Please sign in to comment.