Tech debt: Add types for contracts#1118
Conversation
|
Travis automatic deployment: |
|
Travis automatic deployment: |
|
Travis automatic deployment: |
|
Travis automatic deployment: |
|
Travis automatic deployment: |
|
Travis automatic deployment: |
|
Travis automatic deployment: |
|
Travis automatic deployment: |
|
Travis automatic deployment: |
…debt/add-typechain
…t into tech-debt/add-typechain
|
Travis automatic deployment: |
|
Travis automatic deployment: |
2 similar comments
|
Travis automatic deployment: |
|
Travis automatic deployment: |
| validation={(values) => { | ||
| const selectedTokenRecord = tokens.find((token) => token.address === values?.token) | ||
|
|
||
| return { | ||
| amount: maxValue(selectedTokenRecord?.balance)(values.amount), | ||
| } |
There was a problem hiding this comment.
this looked like code duplication https://github.com/gnosis/safe-react/blob/b28ad26af546cf4e5bb95fb88d7ebe59d6990d5a/src/routes/safe/components/Balances/SendModal/screens/SendFunds/index.tsx#L233
it's working fine without this double validation
|
Travis automatic deployment: |
|
Travis automatic deployment: |
2 similar comments
|
Travis automatic deployment: |
|
Travis automatic deployment: |
|
Travis automatic deployment: |
|
Travis automatic deployment: |
1 similar comment
|
Travis automatic deployment: |
This PR:
getGnosisSafeInstancebecause it doesn't really work how it should: when we call it the first time, it gets initialized with readonly web3.js which cannot be used for sending transactions, memoization should be also dependent on web3 object we have, not only safeAddressTODO
getGnosisSafeInstanceI will create issues for all the todos, the PR is quite large so I decided to leave it on this stage