Skip to content

Commit 13b636e

Browse files
committed
Workaround: tweak the OZ Upgrades file to adapt to new incompatible layout
A previous commit in the TokenStaking contract (6eaf4d5) introduced a potential change in the contract storage layout that is detected by the OZ Upgrades tool: Error: New storage layout is incompatible contracts/staking/TokenStaking.sol:130: Upgraded `slashingQueue` to an incompatible type - In struct TokenStaking.SlashingEvent[] - Bad upgrade to struct TokenStaking.SlashingEvent - In struct TokenStaking.SlashingEvent - Deleted `application` > Keep the variable even if unused The good news is that this struct is still unused since there are no real applications running yet, so there's no consequences. As a workaround, we decided to tweak the OZ Upgrades layout file to adapt to the new layout. Going forward we will implement automatic checks that verify the layout of any potential change to the staking contract.
1 parent 535e23b commit 13b636e

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

.openzeppelin/mainnet.json

-4
Original file line numberDiff line numberDiff line change
@@ -273,10 +273,6 @@
273273
{
274274
"label": "amount",
275275
"type": "t_uint96"
276-
},
277-
{
278-
"label": "application",
279-
"type": "t_address"
280276
}
281277
]
282278
},

0 commit comments

Comments
 (0)