\fix(@desktop/wallet): Fix register ENS flow which is currently broken
This commit is contained in:
parent
e279e639a4
commit
b20cb42def
|
@ -126,6 +126,8 @@ Item {
|
||||||
preDefinedAmountToSend: LocaleUtils.numberToLocaleString(0)
|
preDefinedAmountToSend: LocaleUtils.numberToLocaleString(0)
|
||||||
preSelectedHoldingID: Constants.ethToken
|
preSelectedHoldingID: Constants.ethToken
|
||||||
preSelectedHoldingType: Constants.TokenType.ERC20
|
preSelectedHoldingType: Constants.TokenType.ERC20
|
||||||
|
publicKey: root.contactsStore.myPublicKey
|
||||||
|
ensName: root.username
|
||||||
sendTransaction: function() {
|
sendTransaction: function() {
|
||||||
if(bestRoutes.count === 1) {
|
if(bestRoutes.count === 1) {
|
||||||
let path = bestRoutes.firstItem()
|
let path = bestRoutes.firstItem()
|
||||||
|
|
|
@ -72,6 +72,8 @@ Item {
|
||||||
preDefinedAmountToSend: LocaleUtils.numberToLocaleString(0)
|
preDefinedAmountToSend: LocaleUtils.numberToLocaleString(0)
|
||||||
preSelectedHoldingID: Constants.ethToken
|
preSelectedHoldingID: Constants.ethToken
|
||||||
preSelectedHoldingType: Constants.TokenType.ERC20
|
preSelectedHoldingType: Constants.TokenType.ERC20
|
||||||
|
publicKey: root.contactsStore.myPublicKey
|
||||||
|
ensName: ensUsername.text
|
||||||
sendTransaction: function() {
|
sendTransaction: function() {
|
||||||
if(bestRoutes.count === 1) {
|
if(bestRoutes.count === 1) {
|
||||||
let path = bestRoutes.firstItem()
|
let path = bestRoutes.firstItem()
|
||||||
|
|
|
@ -76,6 +76,8 @@ Item {
|
||||||
preDefinedAmountToSend: LocaleUtils.numberToLocaleString(10)
|
preDefinedAmountToSend: LocaleUtils.numberToLocaleString(10)
|
||||||
preSelectedHoldingID: !!d.sntToken && !!d.sntToken.symbol ? d.sntToken.symbol: ""
|
preSelectedHoldingID: !!d.sntToken && !!d.sntToken.symbol ? d.sntToken.symbol: ""
|
||||||
preSelectedHoldingType: Constants.TokenType.ERC20
|
preSelectedHoldingType: Constants.TokenType.ERC20
|
||||||
|
publicKey: root.contactsStore.myPublicKey
|
||||||
|
ensName: root.username
|
||||||
sendTransaction: function() {
|
sendTransaction: function() {
|
||||||
if(bestRoutes.count === 1) {
|
if(bestRoutes.count === 1) {
|
||||||
let path = bestRoutes.firstItem()
|
let path = bestRoutes.firstItem()
|
||||||
|
|
|
@ -43,6 +43,10 @@ StatusDialog {
|
||||||
property int preSelectedChainId: 0
|
property int preSelectedChainId: 0
|
||||||
property string stickersPackId
|
property string stickersPackId
|
||||||
|
|
||||||
|
// needed for registering ENS
|
||||||
|
property string publicKey
|
||||||
|
property string ensName
|
||||||
|
|
||||||
// token symbol
|
// token symbol
|
||||||
property string preSelectedHoldingID
|
property string preSelectedHoldingID
|
||||||
property int preSelectedHoldingType: Constants.TokenType.Unknown
|
property int preSelectedHoldingType: Constants.TokenType.Unknown
|
||||||
|
@ -266,6 +270,14 @@ StatusDialog {
|
||||||
if (!!popup.stickersPackId) {
|
if (!!popup.stickersPackId) {
|
||||||
d.extraParamsJson = "{\"%1\":\"%2\"}".arg(Constants.suggestedRoutesExtraParamsProperties.packId).arg(popup.stickersPackId)
|
d.extraParamsJson = "{\"%1\":\"%2\"}".arg(Constants.suggestedRoutesExtraParamsProperties.packId).arg(popup.stickersPackId)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!!popup.ensName && !!popup.publicKey) {
|
||||||
|
d.extraParamsJson = "{\"%1\":\"%2\",\"%3\":\"%4\"}"
|
||||||
|
.arg(Constants.suggestedRoutesExtraParamsProperties.username)
|
||||||
|
.arg(popup.ensName)
|
||||||
|
.arg(Constants.suggestedRoutesExtraParamsProperties.publicKey)
|
||||||
|
.arg(popup.publicKey)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
onClosed: popup.store.resetStoredProperties()
|
onClosed: popup.store.resetStoredProperties()
|
||||||
|
|
Loading…
Reference in New Issue