Skip to content

Commit 048c1ba

Browse files
committed
fix: update deployment workflow to ensure build-and-test completion and improve admin address initialization in HandlerGlobal contract
1 parent f84e644 commit 048c1ba

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

.github/workflows/sharing-smart-contract-deploy.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
node-version: 20
3131

3232
deploy:
33-
# needs: build-and-test
33+
needs: build-and-test
3434
runs-on: ubuntu-latest
3535
env:
3636
CI: true
@@ -116,4 +116,4 @@ jobs:
116116

117117
- name: Verify contracts
118118
# TODO
119-
run: echo "Verification step is not implemented yet"
119+
run: echo "Verification step is not implemented yet"

packages/sharing-smart-contract/test/invariant/handlers/HandlerGlobal.sol

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ contract HandlerGlobal is Test, GhostStorage {
2424
AddOnlyAppWhitelistRegistry public addOnlyAppWhitelistRegistry;
2525

2626
constructor() {
27-
address admin = address(54321);
27+
address admin = makeAddr("admin");
2828
vm.label(admin, "admin");
2929
vm.label(address(POCO_DELEGATE), "pocoDelegate");
3030
vm.label(address(POCO_PROTECTED_DATA_REGISTRY), "protectedDataRegistry");
@@ -46,8 +46,6 @@ contract HandlerGlobal is Test, GhostStorage {
4646
Clones.clone(address(dataProtectorSharingImpl))
4747
);
4848
vm.label(address(dataProtectorSharing), "dataProtectorSharing");
49-
50-
vm.prank(admin);
51-
dataProtectorSharing.initialize();
49+
dataProtectorSharing.initialize(admin);
5250
}
5351
}

0 commit comments

Comments
 (0)