Skip to content

Commit

Permalink
Fixed applyHarness.patch
Browse files Browse the repository at this point in the history
  • Loading branch information
tadeas-kucera committed Mar 29, 2023
1 parent 5a82376 commit 8f65945
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions certora/applyHarness.patch
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ diff -ruN src/AaveTokenV3.sol src/AaveTokenV3.sol
@@ -237,7 +237,7 @@
toUserState.balance = toBalanceBefore + uint104(amount);
_balances[to] = toUserState;

- if (toUserState.delegationState != DelegationState.NO_DELEGATION) {
+ if (toUserState.delegationState != uint8(DelegationState.NO_DELEGATION)) {
_governancePowerTransferByType(
Expand Down Expand Up @@ -53,14 +53,14 @@ diff -ruN src/BaseAaveToken.sol src/BaseAaveToken.sol
--- src/BaseAaveToken.sol 2023-03-28 15:10:26
+++ src/BaseAaveToken.sol 2023-03-28 15:10:24
@@ -16,10 +16,10 @@

// reorder fields to make hooks syntax simpler
struct DelegationAwareBalance {
- DelegationState delegationState;
uint104 balance;
uint72 delegatedPropositionBalance;
uint72 delegatedVotingBalance;
- DelegationState delegationState;
+ uint8 delegationState; // refactored from enum
}

mapping(address => DelegationAwareBalance) internal _balances;

0 comments on commit 8f65945

Please sign in to comment.