hardhat-ignition icon indicating copy to clipboard operation
hardhat-ignition copied to clipboard

Async support in buildModule

Open humayunj opened this issue 1 year ago • 3 comments

Short version: How can I pass latest block time in constructor args like in hardhat Lock example

Description: I'm not able to find any way to pass async dynamic value to constructor of contract inside buildModule. We can either pass params via code or by parameters.json, parameters.json is static while the buildModule doesn't support promises ( it's orchestrated around Futures ). To pass latest block block time I need to wait for the response from RPC like time.latest() being used in hardhat lock example

humayunj avatar Oct 26 '23 09:10 humayunj