Adds a migration contract from 1.3.0 to 1.4.1 with migrate and migrateL2 methods. The contract inherits from the SafeStorage library and changes the singleton address to one of the hardcoded addresses (l1 or l2). It also calls safe's setFallbackHandler method during the migration. The motivation for adding the fallback handler upgrade is to upgrade a Safe in one transaction without using nested delegate calls.
This PR:
migrate
andmigrateL2
methods. The contract inherits from the SafeStorage library and changes the singleton address to one of the hardcoded addresses (l1 or l2). It also calls safe'ssetFallbackHandler
method during the migration. The motivation for adding the fallback handler upgrade is to upgrade a Safe in one transaction without using nested delegate calls.Review notes:
rm -rf node_moduless & rm -rf package-lock.json && npm i
, hence the updated lockfilePossible improvements: