Skip to content

Commit

Permalink
update comment (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
v9n authored Jul 12, 2024
1 parent 11f0f69 commit 45a2a1b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
3 changes: 3 additions & 0 deletions cmd/deregister.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
/*
Copyright © 2024 Ava Protocol
*/
package cmd

import (
Expand Down
2 changes: 1 addition & 1 deletion cmd/removeAlias.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright © 2024 NAME HERE <EMAIL ADDRESS>
Copyright © 2024 Ava Protocol
*/
package cmd

Expand Down
5 changes: 3 additions & 2 deletions contracts/script/DeployAPConfig.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -30,18 +30,19 @@ contract DeployAPConfig is Script {
APConfig apConfig = new APConfig();
vm.serializeAddress(output, "apConfigImpl", address(apConfig));

// 2. Swap impl or deploy new proxy and bind to
if (swapImpl) {
ProxyAdmin oakProxyAdmin =
ProxyAdmin(oakAVSProxyAdmin);

// 3. Here we want
// Load existing proxy and upgrade that to this new impl
address apProxyAddress = vm.envAddress("AP_PROXY_ADDRESS");
oakProxyAdmin.upgrade(
TransparentUpgradeableProxy(payable(apProxyAddress)),
address(apConfig)
);
} else {
// 2. Deploy the proxy contract
// Deploy the proxy contract, bind it to the impl
TransparentUpgradeableProxy proxy = new TransparentUpgradeableProxy(
address(apConfig),
address(oakAVSProxyAdmin),
Expand Down

0 comments on commit 45a2a1b

Please sign in to comment.