mirror of
https://github.com/status-im/safe-react.git
synced 2025-01-11 18:44:07 +00:00
2.3.1 bugfix
* fallback to tx.recipient in case no if statement worked in getTxData * update pkg.json
This commit is contained in:
parent
1f73556d49
commit
f39b0903ca
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "safe-react",
|
"name": "safe-react",
|
||||||
"version": "2.3.0",
|
"version": "2.3.1",
|
||||||
"description": "Allowing crypto users manage funds in a safer way",
|
"description": "Allowing crypto users manage funds in a safer way",
|
||||||
"website": "https://github.com/gnosis/safe-react#readme",
|
"website": "https://github.com/gnosis/safe-react#readme",
|
||||||
"bugs": {
|
"bugs": {
|
||||||
|
@ -18,15 +18,13 @@ export const getTxData = (tx) => {
|
|||||||
const { to } = tx.decodedParams.transfer
|
const { to } = tx.decodedParams.transfer
|
||||||
txData.recipient = to
|
txData.recipient = to
|
||||||
txData.isTokenTransfer = true
|
txData.isTokenTransfer = true
|
||||||
}
|
} else if (tx.isCollectibleTransfer) {
|
||||||
if (tx.isCollectibleTransfer) {
|
|
||||||
const { safeTransferFrom, transfer, transferFrom } = tx.decodedParams
|
const { safeTransferFrom, transfer, transferFrom } = tx.decodedParams
|
||||||
const { to, value } = safeTransferFrom || transferFrom || transfer
|
const { to, value } = safeTransferFrom || transferFrom || transfer
|
||||||
txData.recipient = to
|
txData.recipient = to
|
||||||
txData.tokenId = value
|
txData.tokenId = value
|
||||||
txData.isCollectibleTransfer = true
|
txData.isCollectibleTransfer = true
|
||||||
}
|
} else if (tx.modifySettingsTx) {
|
||||||
if (tx.modifySettingsTx) {
|
|
||||||
txData.recipient = tx.recipient
|
txData.recipient = tx.recipient
|
||||||
txData.modifySettingsTx = true
|
txData.modifySettingsTx = true
|
||||||
|
|
||||||
@ -50,11 +48,12 @@ export const getTxData = (tx) => {
|
|||||||
txData.removedOwner = oldOwner
|
txData.removedOwner = oldOwner
|
||||||
txData.addedOwner = newOwner
|
txData.addedOwner = newOwner
|
||||||
}
|
}
|
||||||
}
|
} else if (tx.multiSendTx) {
|
||||||
if (tx.multiSendTx) {
|
|
||||||
txData.recipient = tx.recipient
|
txData.recipient = tx.recipient
|
||||||
txData.data = tx.data
|
txData.data = tx.data
|
||||||
txData.customTx = true
|
txData.customTx = true
|
||||||
|
} else {
|
||||||
|
txData.recipient = tx.recipient
|
||||||
}
|
}
|
||||||
} else if (tx.customTx) {
|
} else if (tx.customTx) {
|
||||||
txData.recipient = tx.recipient
|
txData.recipient = tx.recipient
|
||||||
|
Loading…
x
Reference in New Issue
Block a user