fix: disable on testnet
This commit is contained in:
parent
8bf2e394c6
commit
d134ef8e45
|
@ -142,7 +142,6 @@ proc extractCoordinates*(pubkey: string):tuple[x: string, y:string] =
|
|||
result = ("0x" & pubkey[4..67], "0x" & pubkey[68..131])
|
||||
|
||||
proc registerUsername*(username:string, address: EthAddress, pubKey: string, password: string): string =
|
||||
echo username, "................."
|
||||
let
|
||||
label = fromHex(FixedBytes[32], label(username))
|
||||
coordinates = extractCoordinates(pubkey)
|
||||
|
|
|
@ -282,8 +282,9 @@ Item {
|
|||
anchors.bottom: parent.bottom
|
||||
anchors.bottomMargin: Style.current.padding
|
||||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
disabled: profileModel.network !== "mainnet_rpc"
|
||||
//% "Start"
|
||||
label: qsTrId("start")
|
||||
label: !disabled ? qsTrId("start") : qsTr("Only available on Mainnet")
|
||||
onClicked: startBtnClicked()
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue