8000 Add Safe v1.5.0 Deployments by nlordell · Pull Request #1137 · safe-global/safe-deployments · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add Safe v1.5.0 Deployments #1137

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 4, 2025
Merged

Add Safe v1.5.0 Deployments #1137

merged 2 commits into from
Jul 4, 2025

Conversation

nlordell
Copy link
Collaborator
@nlordell nlordell commented Jul 3, 2025

This (rather large) PR adds the Safe v1.5.0 deployments. Unfortunately, this PR is much larger than one would expect because of testing - there used to be pre-baked src/__tests__/assets/v1 folder that were used for toMatchObject assertions, and would require re-generating them for v1.5.0.

Instead, I refactored the tests to check slightly fewer properties, but we should still have similar coverage and make the tests easier to maintain going forward (without the need for an additional assets folder).

One additional change, was to rename DefaultCallbackHandler to TokenCallbackHandler, the new name starting Safe v1.3.0+, which makes sense as the contract is intended for providing token callback implementations. The getDefaultCallbackHandlerDeployment* functions were left in as aliases for backwards compatibility.

This (rather large) PR adds the Safe v1.5.0 deployments.
Unfortunately, this PR is much larger than one would expect because of
testing - there used to be pre-baked `src/__tests__/assets/v1` folder
that were used for `toMatchObject` assertions, and would require
re-generating them for v1.5.0.

Instead, I refactored the tests to check slightly fewer properties,
but we should still have similar coverage and make the tests easier to
maintain going forward (without the need for an additional `assets`
folder).

One additional change, was to rename `DefaultCallbackHandler` to
`TokenCallbackHandler`, the new name starting Safe v1.3.0+, which
makes sense as the contract is intended for providing token callback
implementations. The `getDefaultCallbackHandlerDeployment*` functions
were left in as aliases for backwards compatibility.
@nlordell nlordell requested review from gjeanmart and a team as code owners July 3, 2025 15:14
@nlordell nlordell merged commit 50ae9b9 into main Jul 4, 2025
1 of 3 checks passed
@nlordell nlordell deleted the feat/add-safe-v1.5.0 branch July 4, 2025 09:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0