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
|
@ -162,6 +162,7 @@ proc registerUsername*(username:string, address: EthAddress, pubKey: string, pas
|
||||||
let response = Json.decode(responseStr, RpcResponse)
|
let response = Json.decode(responseStr, RpcResponse)
|
||||||
if not response.error.isNil:
|
if not response.error.isNil:
|
||||||
raise newException(RpcException, "Error registering ens-username: " & response.error.message)
|
raise newException(RpcException, "Error registering ens-username: " & response.error.message)
|
||||||
|
|
||||||
result = response.result
|
result = response.result
|
||||||
|
|
||||||
proc statusRegistrarAddress*():string =
|
proc statusRegistrarAddress*():string =
|
||||||
|
|
|
@ -10,6 +10,10 @@ Item {
|
||||||
signal backBtnClicked();
|
signal backBtnClicked();
|
||||||
signal usernameRegistered(userName: string);
|
signal usernameRegistered(userName: string);
|
||||||
|
|
||||||
|
property string username: ""
|
||||||
|
|
||||||
|
signal backBtnClicked();
|
||||||
|
|
||||||
StyledText {
|
StyledText {
|
||||||
id: sectionTitle
|
id: sectionTitle
|
||||||
//% "ENS usernames"
|
//% "ENS usernames"
|
||||||
|
|
Loading…
Reference in New Issue