Skip to content

Commit 29c151f

Browse files
authored
feat(dev-chain-fast): Change minimumDelegationSeconds config option value (#949)
The new value is one second. This is better value for development environment (see e.g. use case in streamr-dev/network#2926).
1 parent a07dd87 commit 29c151f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

packages/dev-chain-fast/src/deploy.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,11 @@ async function deploy() {
8484
console.log(`- address: ${wallet.address} (private key: ${wallet.privateKey})`)
8585
}
8686

87+
// TODO move this e.g. to deploySponsorshipFactory() when deterministic contract address are in use (ETH-807)
88+
// Currently all transactions affect the contract address calculation, i.e. some contract addresses change
89+
// (relative to what's in @streamr/config) if this transaction is executed inside deploySponsorshipFactory()
90+
await (await streamrEnvDeployer.contracts.streamrConfig.setMinimumDelegationSeconds(1)).wait()
91+
8792
const contractAddresses = {
8893
...streamrEnvDeployer.addresses,
8994
...hubDeployer.addresses,

0 commit comments

Comments
 (0)