mirror of
https://github.com/codex-storage/nim-codex.git
synced 2025-03-04 06:20:45 +00:00
Integration tests have been updated to use the new cli commands. The api for usage in the integration tests has also changed a bit. Proofs tests have been updated to use 5 nodes and 8 blocks of data. The remaining integration tests also need to be updated.
16 lines
381 B
Nim
16 lines
381 B
Nim
type
|
|
HardhatConfig* = object
|
|
logFile*: bool
|
|
debugEnabled*: bool
|
|
|
|
proc debug*(self: HardhatConfig, enabled = true): HardhatConfig =
|
|
## output log in stdout
|
|
var config = self
|
|
config.debugEnabled = enabled
|
|
return config
|
|
|
|
proc withLogFile*(self: HardhatConfig, logToFile: bool = true): HardhatConfig =
|
|
var config = self
|
|
config.logFile = logToFile
|
|
return config
|