Skip to content

Commit

Permalink
Upgrade through upg executor
Browse files Browse the repository at this point in the history
  • Loading branch information
gvladika committed Oct 25, 2023
1 parent d603cba commit 1c8f496
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions system_tests/staker_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -331,9 +331,11 @@ func stakerTestImpl(t *testing.T, faultyStaker bool, honestStakerInactive bool)
Fatal(t, "failed to get challenge manager proxy admin")
}

proxyAdmin, err := mocksgen.NewProxyAdminForBinding(proxyAdminAddr, l1client)
proxyAdminABI, err := abi.JSON(strings.NewReader(mocksgen.ProxyAdminForBindingABI))
Require(t, err)
tx, err = proxyAdmin.Upgrade(&deployAuth, managerAddr, mockImpl)
upgradeCalldata, err := proxyAdminABI.Pack("upgrade", managerAddr, mockImpl)
Require(t, err)
tx, err = upgradeExecutor.ExecuteCall(&deployAuth, proxyAdminAddr, upgradeCalldata)
Require(t, err)
_, err = EnsureTxSucceeded(ctx, l1client, tx)
Require(t, err)
Expand Down

0 comments on commit 1c8f496

Please sign in to comment.