Skip to content

Commit

Permalink
feat(protocol): Fix failing unit test (#14358)
Browse files Browse the repository at this point in the history
Co-authored-by: David <[email protected]>
  • Loading branch information
adaki2004 and davidtaikocha authored Aug 3, 2023
1 parent 1f2d4bc commit 42bbc5f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/protocol/test/ERC20Vault.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -387,11 +387,13 @@ contract TestERC20Vault is Test {
// Upgrade the implementation of that contract
// so that it supports now the 'helloWorld' call
UpdatedBridgedERC20 newBridgedContract = new UpdatedBridgedERC20();
vm.stopPrank();
vm.prank(Amelia, Amelia);
TransparentUpgradeableProxy(payable(bridgedAddressAfter)).upgradeTo(
address(newBridgedContract)
);

vm.prank(Alice, Alice);
try UpdatedBridgedERC20(bridgedAddressAfter).helloWorld() {
//It should support now this function call
assertEq(true, true);
Expand Down

0 comments on commit 42bbc5f

Please sign in to comment.