fix(@desktop/Wallet): Fix ERC721 sending
This commit is contained in:
parent
4a3eb4ce18
commit
28101f354a
|
@ -18,6 +18,7 @@ type
|
||||||
StickersBuy
|
StickersBuy
|
||||||
Bridge
|
Bridge
|
||||||
ERC721Transfer
|
ERC721Transfer
|
||||||
|
ERC1155Transfer
|
||||||
|
|
||||||
type
|
type
|
||||||
PendingTransactionTypeDto* {.pure.} = enum
|
PendingTransactionTypeDto* {.pure.} = enum
|
||||||
|
|
|
@ -468,13 +468,16 @@ QtObject:
|
||||||
chainID = selectedRoutes[0].fromNetwork.chainID
|
chainID = selectedRoutes[0].fromNetwork.chainID
|
||||||
|
|
||||||
var tokenSymbol = ""
|
var tokenSymbol = ""
|
||||||
let token = self.tokenService.getTokenBySymbolByTokensKey(assetKey)
|
if sendType == ERC721Transfer or sendType == ERC1155Transfer:
|
||||||
if token != nil:
|
tokenSymbol = assetKey
|
||||||
tokenSymbol = token.symbol
|
else:
|
||||||
|
let token = self.tokenService.getTokenBySymbolByTokensKey(assetKey)
|
||||||
|
if token != nil:
|
||||||
|
tokenSymbol = token.symbol
|
||||||
|
|
||||||
let network = self.networkService.getNetwork(chainID)
|
let network = self.networkService.getNetwork(chainID)
|
||||||
if network.nativeCurrencySymbol == tokenSymbol:
|
if network.nativeCurrencySymbol == tokenSymbol:
|
||||||
isEthTx = true
|
isEthTx = true
|
||||||
|
|
||||||
if(isEthTx):
|
if(isEthTx):
|
||||||
self.transferEth(fromAddr, toAddr, tokenSymbol, value, uuid, selectedRoutes, finalPassword)
|
self.transferEth(fromAddr, toAddr, tokenSymbol, value, uuid, selectedRoutes, finalPassword)
|
||||||
|
|
Loading…
Reference in New Issue