question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Feature Request: add time property to truffle-config.js

See original GitHub issue

Issue

Ganache-core and ganache-cli have options to set a specific time stamp on the genesis block, but there is no way to specify this in a truffle-config.js

Expected Behavior

Adding a genesis_time property as suggested below would enable truffle test to start the default ganache-core with the appropriate time.

module.exports = {
 ...
      genesis_time: "2019-04-09T02:10:14Z"
 ...
};

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
krsnnikcommented, Jul 3, 2019

I’d love to take a look at adding this!

1reaction
eggplantzzzcommented, Jul 5, 2019

@krsnnik Let us know if you have any questions about this. Good luck!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Configuration - Truffle Suite
Your configuration file is called truffle-config.js and is located at the root of your project directory. This file is a Javascript file and...
Read more >
Configuration | Truffle documentation - DApp develop framework
Your configuration file is called truffle-config.js and is located at the root of your project directory. This file is a Javascript file and...
Read more >
How to write, test and deploy Ethereum smart contracts using ...
In your Truffle.config.js file, add the following code: const HDWalletProvider = require('@truffle/hdwallet-provider'); module.exports = {
Read more >
Truffle develop timeout error · Issue #2552 - GitHub
I'm trying to run truffle develop , but about 95% of the time I get the following timeout ... And below my truffle-config.js...
Read more >
Truffle: Testing Smart Contracts - SitePoint
js . In that file, add the following code: var HashMarket = artifacts.require( ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found