diff --git a/src/app_service/service/transaction/dto.nim b/src/app_service/service/transaction/dto.nim index 677232e7e6..c3dce2fd41 100644 --- a/src/app_service/service/transaction/dto.nim +++ b/src/app_service/service/transaction/dto.nim @@ -18,6 +18,7 @@ type StickersBuy Bridge ERC721Transfer + ERC1155Transfer type PendingTransactionTypeDto* {.pure.} = enum diff --git a/src/app_service/service/transaction/service.nim b/src/app_service/service/transaction/service.nim index c3ea4442b4..47ffb9725f 100644 --- a/src/app_service/service/transaction/service.nim +++ b/src/app_service/service/transaction/service.nim @@ -468,13 +468,16 @@ QtObject: chainID = selectedRoutes[0].fromNetwork.chainID var tokenSymbol = "" - let token = self.tokenService.getTokenBySymbolByTokensKey(assetKey) - if token != nil: - tokenSymbol = token.symbol + if sendType == ERC721Transfer or sendType == ERC1155Transfer: + tokenSymbol = assetKey + else: + let token = self.tokenService.getTokenBySymbolByTokensKey(assetKey) + if token != nil: + tokenSymbol = token.symbol - let network = self.networkService.getNetwork(chainID) - if network.nativeCurrencySymbol == tokenSymbol: - isEthTx = true + let network = self.networkService.getNetwork(chainID) + if network.nativeCurrencySymbol == tokenSymbol: + isEthTx = true if(isEthTx): self.transferEth(fromAddr, toAddr, tokenSymbol, value, uuid, selectedRoutes, finalPassword)