(Feature) - Replaces createProxy with createProxyWithNonce method no safe creation#1630
Conversation
|
CLA Assistant Lite All Contributors have signed the CLA. |
ESLint Summary View Full Report
[warning] @typescript-eslint/explicit-module-boundary-types
Report generated by eslint-plus-action |
|
Travis automatic deployment: |
fernandomg
left a comment
There was a problem hiding this comment.
I'm finding quite odd that we are calculating the randomSalt value twice during the creation of the Safe.
I think we should pass the value as a parameter to the functions.
…create2' into feature/1577-use-proxy-creation-create2
Yes make sense, I updated the code to do that |
| .encodeABI() | ||
|
|
||
| return proxyFactoryMaster.methods.createProxy(safeMaster.options.address, gnosisSafeData) | ||
| return proxyFactoryMaster.methods.createProxyWithNonce(safeMaster.options.address, gnosisSafeData, safeCreationSalt) |
There was a problem hiding this comment.
DO you know if all the proxyFactory versions have this method implemented?
There was a problem hiding this comment.
Mmm I'm not sure, @rmeissner could you confirm please?
There was a problem hiding this comment.
We are getting that info from the @gnosis.pm/safe-contracts package. I think it's safe to assume that that method will be available.
There was a problem hiding this comment.
our proxy factory always exposes this method ;)
| ) | ||
| } | ||
|
|
||
| export default Layout |
There was a problem hiding this comment.
is there a reason to remove default?
There was a problem hiding this comment.
Yep, check this: https://basarat.gitbook.io/typescript/main-1/defaultisbad
There was a problem hiding this comment.
Interesting, I disagreed with some points and some others are interesting.
But I think we should all agreed on this because right now almost all the project is making use of default export.
If we define to start using named exports always, we should define a linter rule. wdyt?
There was a problem hiding this comment.
Yep it's a good idea for me
|
Travis automatic deployment: |
|
Travis automatic deployment: |
|
Travis automatic deployment: |
|
Travis automatic deployment: |
|
Travis automatic deployment: |
|
Travis automatic deployment: |
Closes #1577 by:
createProxymethod withcreateProxyWithNoncethat lets us add some salt for randomizing the created safeAddress