Skip to content

Commit

Permalink
fix(Horizon): added missing parameter for TAPCollector deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
Maikol committed Oct 16, 2024
1 parent 0c0d090 commit 8eab8f5
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/horizon/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ We use Hardhat Ignition to deploy the contracts. To build and deploy the contrac
yarn install
yarn build
npx hardhat ignition deploy ./ignition/modules/horizon.ts \
--parameters ./ignition/configs/graph.hardhat.json \
--parameters ./ignition/configs/horizon.hardhat.json \
--network hardhat
```

Expand Down
3 changes: 2 additions & 1 deletion packages/horizon/ignition/configs/horizon.hardhat.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
},
"TAPCollector": {
"eip712Name": "TAPCollector",
"eip712Version": "1"
"eip712Version": "1",
"revokeSignerThawingPeriod": 10000
}
}
3 changes: 2 additions & 1 deletion packages/horizon/ignition/modules/core/TAPCollector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@ export default buildModule('TAPCollector', (m) => {

const name = m.getParameter('eip712Name')
const version = m.getParameter('eip712Version')
const revokeSignerThawingPeriod = m.getParameter('revokeSignerThawingPeriod')

const TAPCollector = m.contract('TAPCollector', TAPCollectorArtifact, [name, version, Controller], { after: [PeripheryRegistered, HorizonRegistered] })
const TAPCollector = m.contract('TAPCollector', TAPCollectorArtifact, [name, version, Controller, revokeSignerThawingPeriod], { after: [PeripheryRegistered, HorizonRegistered] })

return { TAPCollector }
})
2 changes: 1 addition & 1 deletion packages/horizon/scripts/deploy.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { ignition } from 'hardhat'

import Parameters from '../ignition/graph.hardhat.json'
import Parameters from '../ignition/configs/horizon.hardhat.json'
import PeripheryModule from '../ignition/modules/periphery'

async function main() {
Expand Down

0 comments on commit 8eab8f5

Please sign in to comment.