aurora-is-near / aurora-engine

⚙️ Aurora Engine implements an Ethereum Virtual Machine (EVM) on the NEAR Protocol.
https://doc.aurora.dev/develop/compat/evm
331 stars 82 forks source link

Fix: deploy_upgrade() Does Not Clear Upgrade Index #741

Closed lempire123 closed 1 year ago

lempire123 commented 1 year ago

There is an issue in deploy_upgrade() that the upgrade index is not cleared after each call.

Therefore, deploy_upgrade()will pass the check io.block_height() <= index + state.upgrade_delay_blocks since index remains unchanged from previous calls.