Skip to content

Commit 0e8aaaf

Browse files
authored
Change default voting delay for Governor (#258)
1 parent 49dbec3 commit 0e8aaaf

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

packages/core/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
## 0.3.0 (2023-05-25)
44

55
- **Breaking change**: Update to OpenZeppelin Contracts 4.9. ([#252](https://github.com/OpenZeppelin/contracts-wizard/pull/252))
6+
- Change default voting delay to 1 day in `governor`. ([#258](https://github.com/OpenZeppelin/contracts-wizard/pull/258))
67

78
## 0.2.3 (2023-03-23)
89

packages/core/src/governor.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ function testGovernor(title: string, opts: Partial<GovernorOptions>) {
2424
test(title, t => {
2525
t.is(governor.print(opts), printContract(buildGovernor({
2626
name: 'MyGovernor',
27-
delay: '1 block',
27+
delay: '1 day',
2828
period: '1 week',
2929
...opts,
3030
})));

packages/core/src/governor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import { durationToBlocks } from "./utils/duration";
1111

1212
export const defaults: Required<GovernorOptions> = {
1313
name: 'MyGovernor',
14-
delay: '1 block',
14+
delay: '1 day',
1515
period: '1 week',
1616

1717
votes: 'erc20votes',

0 commit comments

Comments
 (0)