Skip to content

Commit 62cec39

Browse files
committed
Fixed the DevnetMigration script for the testnet configuration
1 parent bd04076 commit 62cec39

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

script/DevnetMigration.s.sol

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ contract DevnetMigration is Script {
197197
ForwarderFactory forwarderFactory = new ForwarderFactory();
198198
HyperdriveFactory.FactoryConfig
199199
memory factoryConfig = HyperdriveFactory.FactoryConfig({
200-
governance: config.admin,
200+
governance: msg.sender,
201201
hyperdriveGovernance: config.admin,
202202
feeCollector: config.admin,
203203
fees: IHyperdrive.Fees({
@@ -273,9 +273,11 @@ contract DevnetMigration is Script {
273273
// Deploy the MockHyperdriveMath contract.
274274
MockHyperdriveMath mockHyperdriveMath = new MockHyperdriveMath();
275275

276-
// Transfer ownership of the base token and vault to the admin address
277-
// now that we're done minting tokens.
276+
// Transfer ownership of the base token, factory, and vault to the admin
277+
// address now that we're done minting tokens and updating the
278+
// configuration.
278279
baseToken.transferOwnership(config.admin);
280+
factory.updateGovernance(config.admin);
279281
pool.transferOwnership(config.admin);
280282

281283
vm.stopBroadcast();

0 commit comments

Comments
 (0)