Skip to content

Support submitting approveHash onchain, rather than signatures#34

Merged
anikaraghu merged 1 commit intomainfrom
michael/approve-hash
Jul 31, 2023
Merged

Support submitting approveHash onchain, rather than signatures#34
anikaraghu merged 1 commit intomainfrom
michael/approve-hash

Conversation

@mdehoog
Copy link

@mdehoog mdehoog commented Jul 29, 2023

This will allow support for nested-nested-multisigs, e.g. there's a safe that is a signer for the nested safe (3 layers of safes). Instead of providing a signature, this inner safe can submit an approveHash to the middle safe, which will eventually allow approveHash on the outer safe.

IMulticall3.Call3[] memory nestedCalls = _buildCalls();
IMulticall3.Call3 memory call = _generateApproveCall(nestedSafeAddress, nestedCalls);

address[] memory approvers = _getApprovers(_signerSafe, toArray(call));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Super helpful to automatically grab any onchain signatures! I was manually trying to construct the prevalidated signatures 😅 Could we add a comment mentioning that this happens automatically?

Copy link
Contributor

@anikaraghu anikaraghu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💯

@anikaraghu anikaraghu merged commit b22778c into main Jul 31, 2023
@anikaraghu anikaraghu deleted the michael/approve-hash branch July 31, 2023 17:52
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