Merge pull request #1062 from gnosis/dev-master-backmerge

Dev master backmerge
This commit is contained in:
Mikhail Mikheev 2020-06-25 17:15:48 +04:00 committed by GitHub
commit 51634e559d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 456 additions and 438 deletions

View File

@ -1,6 +1,6 @@
{
"name": "safe-react",
"version": "2.3.0",
"version": "2.3.1",
"description": "Allowing crypto users manage funds in a safer way",
"website": "https://github.com/gnosis/safe-react#readme",
"bugs": {

View File

@ -18,15 +18,13 @@ export const getTxData = (tx) => {
const { to } = tx.decodedParams.transfer
txData.recipient = to
txData.isTokenTransfer = true
}
if (tx.isCollectibleTransfer) {
} else if (tx.isCollectibleTransfer) {
const { safeTransferFrom, transfer, transferFrom } = tx.decodedParams
const { to, value } = safeTransferFrom || transferFrom || transfer
txData.recipient = to
txData.tokenId = value
txData.isCollectibleTransfer = true
}
if (tx.modifySettingsTx) {
} else if (tx.modifySettingsTx) {
txData.recipient = tx.recipient
txData.modifySettingsTx = true
@ -50,11 +48,12 @@ export const getTxData = (tx) => {
txData.removedOwner = oldOwner
txData.addedOwner = newOwner
}
}
if (tx.multiSendTx) {
} else if (tx.multiSendTx) {
txData.recipient = tx.recipient
txData.data = tx.data
txData.customTx = true
} else {
txData.recipient = tx.recipient
}
} else if (tx.customTx) {
txData.recipient = tx.recipient

881
yarn.lock

File diff suppressed because it is too large Load Diff