Fix typo in function name + Add Wallet link
This commit is contained in:
parent
69459db9a9
commit
552611d779
|
@ -51,7 +51,7 @@ export const isSendERC721Transaction = (tx: any, txCode: string, knownTokens: an
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
export const getERC21Symbol = memoize(async (contractAddress) => {
|
export const getERC721Symbol = memoize(async (contractAddress) => {
|
||||||
const ERC21token = await getERC721TokenContract()
|
const ERC21token = await getERC721TokenContract()
|
||||||
const tokenInstance = await ERC21token.at(contractAddress)
|
const tokenInstance = await ERC21token.at(contractAddress)
|
||||||
return tokenInstance.symbol()
|
return tokenInstance.symbol()
|
||||||
|
|
|
@ -48,6 +48,7 @@ const wallets = [
|
||||||
{ walletName: 'torus', desktop: true },
|
{ walletName: 'torus', desktop: true },
|
||||||
{ walletName: 'unilogin', desktop: true },
|
{ walletName: 'unilogin', desktop: true },
|
||||||
{ walletName: 'coinbase', desktop: false },
|
{ walletName: 'coinbase', desktop: false },
|
||||||
|
{ walletName: 'walletLink', rpcUrl: infuraUrl, desktop: false },
|
||||||
{ walletName: 'opera', desktop: false },
|
{ walletName: 'opera', desktop: false },
|
||||||
{ walletName: 'operaTouch', desktop: false },
|
{ walletName: 'operaTouch', desktop: false },
|
||||||
]
|
]
|
||||||
|
|
|
@ -4,7 +4,7 @@ import { DecodedMethods, decodeMethods } from 'src/logic/contracts/methodIds'
|
||||||
import { TOKEN_REDUCER_ID } from 'src/logic/tokens/store/reducer/tokens'
|
import { TOKEN_REDUCER_ID } from 'src/logic/tokens/store/reducer/tokens'
|
||||||
import {
|
import {
|
||||||
getERC20DecimalsAndSymbol,
|
getERC20DecimalsAndSymbol,
|
||||||
getERC21Symbol,
|
getERC721Symbol,
|
||||||
isSendERC20Transaction,
|
isSendERC20Transaction,
|
||||||
isSendERC721Transaction,
|
isSendERC721Transaction,
|
||||||
} from 'src/logic/tokens/utils/tokenHelpers'
|
} from 'src/logic/tokens/utils/tokenHelpers'
|
||||||
|
@ -286,7 +286,7 @@ export const buildTx = async ({
|
||||||
safeTxGas: tx.safeTxGas,
|
safeTxGas: tx.safeTxGas,
|
||||||
safeTxHash: tx.safeTxHash,
|
safeTxHash: tx.safeTxHash,
|
||||||
submissionDate: tx.submissionDate,
|
submissionDate: tx.submissionDate,
|
||||||
symbol: isSendERC721Tx ? await getERC21Symbol(tx.to) : symbol,
|
symbol: isSendERC721Tx ? await getERC721Symbol(tx.to) : symbol,
|
||||||
upgradeTx: isUpgradeTx,
|
upgradeTx: isUpgradeTx,
|
||||||
value: tx.value.toString(),
|
value: tx.value.toString(),
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue