feat: show terms and conditions, add ens registry contract, and determine if you have enough SNT balance.
This commit is contained in:
parent
8f1f01b6a0
commit
7df357dcf7
|
@ -149,4 +149,4 @@ QtObject:
|
|||
let address = parseAddress(status_wallet.getWalletAccounts()[0].address)
|
||||
discard registerUsername(username & status_ens.domain, address, pubKey, password)
|
||||
self.connect(username, true)
|
||||
|
||||
|
||||
|
|
|
@ -162,6 +162,7 @@ proc registerUsername*(username:string, address: EthAddress, pubKey: string, pas
|
|||
let response = Json.decode(responseStr, RpcResponse)
|
||||
if not response.error.isNil:
|
||||
raise newException(RpcException, "Error registering ens-username: " & response.error.message)
|
||||
|
||||
result = response.result
|
||||
|
||||
proc statusRegistrarAddress*():string =
|
||||
|
|
|
@ -10,6 +10,10 @@ Item {
|
|||
signal backBtnClicked();
|
||||
signal usernameRegistered(userName: string);
|
||||
|
||||
property string username: ""
|
||||
|
||||
signal backBtnClicked();
|
||||
|
||||
StyledText {
|
||||
id: sectionTitle
|
||||
//% "ENS usernames"
|
||||
|
|
Loading…
Reference in New Issue